Author: david
Date: Wed Oct 12 15:55:21 2011
New Revision: 10044

Log:
Remove 'print' option.  Add 'file list' option

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

Modified: 
trunk/apps/qubit/modules/informationobject/actions/reportsAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/reportsAction.class.php  
Wed Oct 12 15:47:16 2011        (r10043)
+++ trunk/apps/qubit/modules/informationobject/actions/reportsAction.class.php  
Wed Oct 12 15:55:21 2011        (r10044)
@@ -31,13 +31,12 @@
     {
       case 'report':
         $choices = array(
-          $this->context->routing->generate(null, array($this->resource, 
'module' => 'informationobject', 'media' => 'print')) => 
$this->context->i18n->__('Print %1%', array('%1%' => 
sfConfig::get('app_ui_label_informationobject'))),
-          //$this->context->routing->generate(null, array($this->resource, 
'module' => 'informationobject', 'action' => 'fileList')) => 
$this->context->i18n->__('File list'),
+          $this->context->routing->generate(null, array($this->resource, 
'module' => 'informationobject', 'action' => 'fileList')) => 
$this->context->i18n->__('File list'),
           //$this->context->routing->generate(null, array($this->resource, 
'module' => 'informationobject', 'action' => 'itemList')) => 
$this->context->i18n->__('Item list'),
           $this->context->routing->generate(null, array($this->resource, 
'module' => 'informationobject', 'action' => 'storageLocations')) => 
$this->context->i18n->__('Physical storage locations'),
         );
 
-        $this->form->setDefault($name, $this->context->routing->generate(null, 
array($this->resource, 'module' => 'informationobject', 'media' => 'print')));
+        $this->form->setDefault($name, $this->context->routing->generate(null, 
array($this->resource, 'module' => 'informationobject', 'action' => 
'fileList')));
         $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