Author: jablko
Date: Fri Oct  2 16:30:06 2009
New Revision: 3654

Log:
Add next field

Modified:
   trunk/apps/qubit/modules/physicalobject/actions/deleteAction.class.php
   trunk/apps/qubit/modules/physicalobject/templates/deleteSuccess.php

Modified: trunk/apps/qubit/modules/physicalobject/actions/deleteAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/actions/deleteAction.class.php      
Fri Oct  2 16:23:15 2009        (r3653)
+++ trunk/apps/qubit/modules/physicalobject/actions/deleteAction.class.php      
Fri Oct  2 16:30:06 2009        (r3654)
@@ -43,6 +43,10 @@
     $criteria->addJoin(QubitRelation::OBJECT_ID, QubitInformationObject::ID);
     $this->informationObjects = QubitInformationObject::get($criteria);
 
+    $this->form->setValidator('next', new sfValidatorUrl);
+    $this->form->setWidget('next', new sfWidgetFormInputHidden);
+
+    $this->form->bind($request->getGetParameters());
     if ($request->isMethod('delete'))
     {
       $this->physicalObject->delete();

Modified: trunk/apps/qubit/modules/physicalobject/templates/deleteSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/deleteSuccess.php Fri Oct 
 2 16:23:15 2009        (r3653)
+++ trunk/apps/qubit/modules/physicalobject/templates/deleteSuccess.php Fri Oct 
 2 16:30:06 2009        (r3654)
@@ -10,6 +10,8 @@
 
 <?php echo $form->renderFormTag(url_for(array('module' => 'physicalobject', 
'action' => 'delete', 'id' => $physicalObject->id)), array('method' => 
'delete')) ?>
 
+  <?php echo $form->renderHiddenFields() ?>
+
   <ul class="actions">
     <li><?php echo link_to(__('Cancel'), array('module' => 'physicalobject', 
'action' => 'edit', 'id' => $physicalObject->id)) ?></li>
     <li><?php echo submit_tag(__('Confirm')) ?></li>

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