Author: jablko
Date: Thu Sep 24 17:48:12 2009
New Revision: 3532

Log:
Add default value, fixes issue 1005

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

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Thu Sep 24 17:11:08 2009        (r3531)
+++ trunk/apps/qubit/modules/informationobject/actions/editAction.class.php     
Thu Sep 24 17:48:12 2009        (r3532)
@@ -236,7 +236,7 @@
       $this->form->setValidator('parent', new sfValidatorString);
       $this->form->setWidget('parent', new sfWidgetFormInputHidden);
 
-      $this->form->bind($request->getGetParameters());
+      $this->form->bind($request->getGetParameters() + array('parent' => 
$this->context->routing->generate(null, array('module' => 'informationobject', 
'action' => 'show', 'id' => QubitInformationObject::ROOT_ID))));
     }
 
     // HACK: Use static::$NAMES in PHP 5.3,

--~--~---------~--~----~------------~-------~--~----~
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.ca/group/qubit-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to