Author: david
Date: Wed Oct 12 16:45:19 2011
New Revision: 10053

Log:
Move reference code to top of sort list

Modified:
   trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php

Modified: 
trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php 
Wed Oct 12 16:44:08 2011        (r10052)
+++ trunk/apps/qubit/modules/informationobject/actions/fileListAction.class.php 
Wed Oct 12 16:45:19 2011        (r10053)
@@ -40,9 +40,9 @@
     {
       case 'sortBy':
         $choices = array(
+          'referenceCode' => $this->context->i18n->__('Reference code'),
           'title' => $this->context->i18n->__('Title'),
-          'startDate' => $this->context->i18n->__('Date (most recent first)'),
-          'referenceCode' => $this->context->i18n->__('Reference code')
+          'startDate' => $this->context->i18n->__('Date (most recent first)')
         );
 
         if ($this->getUser()->isAuthenticated)
@@ -50,7 +50,7 @@
           $choices['locations'] = $this->context->i18n->__('Location');
         }
 
-        $this->form->setDefault($name, 'title');
+        $this->form->setDefault($name, 'referenceCode');
         $this->form->setValidator($name, new sfValidatorChoice(array('choices' 
=> array_keys($choices))));
         $this->form->setWidget($name, new sfWidgetFormChoice(array(
           'expanded' => true,

-- 
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