Booked Scheduler Community Support
November 18, 2017, 01:51:56 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Booked 2.5 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: Bugfix for Resource sorting order  (Read 8626 times)
cfraz
Newbie
*

Karma: 0
Posts: 3


« on: March 29, 2006, 10:00:45 PM »

The "All Resources" table on the Manage Resources screen is always sorted by Resource Name, even when you try to sort by Location or Schedule.  This change makes sorting by any of those columns possible; the default sort order is still by Resource Name if nothing else is selected.  This is for version 1.1.3.

I posted this fix awhile back in the SourceForge forum, but there was no response.  That was so uncharacteristic of the forum I thought perhaps no one saw it, hence this post.  My apologies if I've breached protocol.

In function listResourcesTable() in lib\Admin.class.php, directly above

Code:
$orders = array('name', 'machID');

add these lines:

Code:
// Fix sorting. Use 'name' for sorting only when order not specified 3/9/06 caf
if( isset( $_GET['order'] ) )  
$orders = array( trim( $_GET['order'] ), 'machID' );
else

(This puts the $orders = array('name', 'machID'); line in the else clause).

-cfraz
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 6397


WWW
« Reply #1 on: March 30, 2006, 04:30:45 PM »

Very cool, thanks.
Logged
lorenzoaguilar28
Newbie
*

Karma: 0
Posts: 1


WWW
« Reply #2 on: March 09, 2011, 02:45:36 PM »

This is helpful  Grin THANKS
Logged

<
avegazam
Newbie
*

Karma: 0
Posts: 1


« Reply #3 on: July 16, 2017, 02:05:44 PM »

Easy to fly and affordable drones have caused all the buzz this year, but with so many drones for sale, how do you know which drone you should buy? Whether you are looking to get a drone for yourself or as a birthday or Christmas present, this article examines some of the important distinguishing features of the two most common drones; the Parrot AR Drone 2.0 and the DJI Phantom.
i want to buy a drone
Logged
laasri
Newbie
*

Karma: 0
Posts: 1


« Reply #4 on: November 09, 2017, 09:06:21 PM »

where can i make the change? Huh
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!