Author: sevein
Date: Wed Jul 20 11:47:11 2011
New Revision: 9341

Log:
Fix routing issues removing contactinformation records. Fix issue 1962.

Modified:
   
trunk/apps/qubit/modules/actor/actions/deleteContactInformationAction.class.php
   trunk/apps/qubit/modules/actor/config/view.yml
   trunk/apps/qubit/modules/actor/templates/deleteContactInformationSuccess.php

Modified: 
trunk/apps/qubit/modules/actor/actions/deleteContactInformationAction.class.php
==============================================================================
--- 
trunk/apps/qubit/modules/actor/actions/deleteContactInformationAction.class.php 
    Tue Jul 19 17:17:14 2011        (r9340)
+++ 
trunk/apps/qubit/modules/actor/actions/deleteContactInformationAction.class.php 
    Wed Jul 20 11:47:11 2011        (r9341)
@@ -23,7 +23,7 @@
   {
     $this->form = new sfForm;
 
-    $this->resource = 
QubitContactInformation::getById($request->contactInformationId);
+    $this->resource = QubitContactInformation::getById($request->id);
 
     if (!isset($this->resource))
     {

Modified: trunk/apps/qubit/modules/actor/config/view.yml
==============================================================================
--- trunk/apps/qubit/modules/actor/config/view.yml      Tue Jul 19 17:17:14 
2011        (r9340)
+++ trunk/apps/qubit/modules/actor/config/view.yml      Wed Jul 20 11:47:11 
2011        (r9341)
@@ -16,6 +16,10 @@
     /vendor/yui/autocomplete/autocomplete-min:
     autocomplete:
 
+deleteContactInformationSuccess:
+  javascripts:
+    blank:
+
 listSuccess:
   javascripts:
     /plugins/sfDrupalPlugin/vendor/drupal/misc/jquery.once.js:

Modified: 
trunk/apps/qubit/modules/actor/templates/deleteContactInformationSuccess.php
==============================================================================
--- 
trunk/apps/qubit/modules/actor/templates/deleteContactInformationSuccess.php    
    Tue Jul 19 17:17:14 2011        (r9340)
+++ 
trunk/apps/qubit/modules/actor/templates/deleteContactInformationSuccess.php    
    Wed Jul 20 11:47:11 2011        (r9341)
@@ -2,7 +2,7 @@
 
 <?php echo get_partial('repository/contactInformation', 
array('contactInformation' => $resource)) ?>
 
-<?php echo $form->renderFormTag(url_for(array('module' => 'actor', 'action' => 
'deleteContactInformation', 'contactInformationId' => $resource->id)), 
array('method' => 'delete')) ?>
+<?php echo $form->renderFormTag(url_for(array('module' => 'actor', 'action' => 
'deleteContactInformation', 'id' => $resource->id)), array('method' => 
'delete')) ?>
 
   <div class="actions section">
   <h2 class="element-invisible"><?php echo __('Actions') ?></h2>

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