Author: david
Date: 2008-11-13 16:24:35 -0800 (Thu, 13 Nov 2008)
New Revision: 1590

Modified:
   trunk/qubit/apps/qubit/modules/actor/actions/updateAction.class.php
   trunk/qubit/apps/qubit/modules/actor/templates/editIsaarSuccess.php
Log:
Fix bug on actor/edit where note in control area overwriting note in identity 
area due to namespace clash.  Fixes issue #518.

Modified: trunk/qubit/apps/qubit/modules/actor/actions/updateAction.class.php
===================================================================
--- trunk/qubit/apps/qubit/modules/actor/actions/updateAction.class.php 
2008-11-13 23:56:51 UTC (rev 1589)
+++ trunk/qubit/apps/qubit/modules/actor/actions/updateAction.class.php 
2008-11-14 00:24:35 UTC (rev 1590)
@@ -121,9 +121,9 @@
 
   public function updateOtherNames($actor)
   {
-    if ($this->getRequestParameter('name'))
+    if ($this->getRequestParameter('new_name'))
     {
-      $actor->setOtherNames($this->getRequestParameter('name'), 
$this->getRequestParameter('type_id'), $this->getRequestParameter('note'));
+      $actor->setOtherNames($this->getRequestParameter('new_name'), 
$this->getRequestParameter('new_name_type_id'), 
$this->getRequestParameter('new_name_note'));
     }
   }
 

Modified: trunk/qubit/apps/qubit/modules/actor/templates/editIsaarSuccess.php
===================================================================
--- trunk/qubit/apps/qubit/modules/actor/templates/editIsaarSuccess.php 
2008-11-13 23:56:51 UTC (rev 1589)
+++ trunk/qubit/apps/qubit/modules/actor/templates/editIsaarSuccess.php 
2008-11-14 00:24:35 UTC (rev 1590)
@@ -51,11 +51,17 @@
           <td style="text-align: center;"><?php echo 
link_to(image_tag('delete', 'align=top'), 
'actor/deleteOtherName?otherNameId='.$otherName->getId().'&returnTemplate=isaar')
 ?></td></tr>
         <?php endforeach; ?>
       <?php endif; ?>
-      <tr><td>
-      <?php echo object_input_tag($newName, 'getName', array('size' => 10)) 
?></td><td>
-      <?php echo object_select_tag($newName, 'getTypeId', array('name' => 
'type_id', 'id' => 'type_id', 'related_class' => 'QubitTerm', 'include_blank' 
=> true, 'peer_method' => 'getActorNameTypes', 'style' => 'width: 95px;')) ?>
-      </td><td>
-      <?php echo object_input_tag($newName, 'getNote', array('size' => 10)) 
?></td>
+      <tr>
+        <td><?php echo input_tag('new_name', null, array('size' => 10))?></td>
+        <td><?php echo object_select_tag($newName, 'getTypeId', array(
+          'name' => 'new_name_type_id',
+          'id' => 'new_name_type_id',
+          'related_class' => 'QubitTerm',
+          'include_blank' => true,
+          'peer_method' => 'getActorNameTypes',
+          'style' => 'width: 95px;'
+        )) ?></td>
+        <td><?php echo input_tag('new_name_note', null, array('size' => 
10))?></td>
       </tr>
     </table>
   </div>


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