Author: david
Date: Wed Sep 21 14:02:15 2011
New Revision: 9778

Log:
Can't sort by 'type' - too hard to do with culture fallback

Modified:
   trunk/apps/qubit/modules/physicalobject/actions/browseAction.class.php
   trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php

Modified: trunk/apps/qubit/modules/physicalobject/actions/browseAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/actions/browseAction.class.php      
Wed Sep 21 14:00:41 2011        (r9777)
+++ trunk/apps/qubit/modules/physicalobject/actions/browseAction.class.php      
Wed Sep 21 14:02:15 2011        (r9778)
@@ -53,16 +53,6 @@
 
         break;
 
-      case 'typeDown':
-        $criteria->addDescendingOrderByColumn('type');
-
-        break;
-
-      case 'typeUp':
-        $criteria->addAscendingOrderByColumn('type');
-
-        break;
-
       case 'nameUp':
       default:
         $request->sort = 'nameUp';

Modified: trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php Wed Sep 
21 14:00:41 2011        (r9777)
+++ trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php Wed Sep 
21 14:02:15 2011        (r9778)
@@ -7,12 +7,10 @@
     <tr>
       <th class="sortable">
         <?php echo link_to(__('Name'), array('sort' => ('nameUp' == 
$sf_request->sort) ? 'nameDown' : 'nameUp') + 
$sf_request->getParameterHolder()->getAll(), array('title' => __('Sort'), 
'class' => 'sortable')) ?>
-      </th>
-      <th class="sortable">
+      </th><th class="sortable">
         <?php echo link_to(__('Location'), array('sort' => ('locationUp' == 
$sf_request->sort) ? 'locationDown' : 'locationUp') + 
$sf_request->getParameterHolder()->getAll(), array('title' => __('Sort'), 
'class' => 'sortable')) ?>
-      </th>
-      <th class="sortable">
-        <?php echo link_to(__('Type'), array('sort' => ('typeUp' == 
$sf_request->sort) ? 'typeDown' : 'typeUp') + 
$sf_request->getParameterHolder()->getAll(), array('title' => __('Sort'), 
'class' => 'sortable')) ?>
+      </th><th>
+        <?php echo __('Type') ?>
       </th>
     </tr>
   </thead><tbody>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to