Author: peter
Date: Sun Sep 27 18:15:30 2009
New Revision: 3559

Log:
make sure general and publication notes are getting saved on editIsad template

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

Modified: 
trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php 
Sun Sep 27 18:13:57 2009        (r3558)
+++ trunk/apps/qubit/modules/informationobject/actions/editIsadAction.class.php 
Sun Sep 27 18:15:30 2009        (r3559)
@@ -171,6 +171,24 @@
         $this->informationObject->setNote(array('userId' => $userId, 'note' => 
$newArchivistNote, 'noteTypeId' => QubitTerm::ARCHIVIST_NOTE_ID));
       }
     }
+
+    // Update publication notes (multiple)
+    foreach ((array) $this->getRequestParameter('new_publication_note') as 
$newNote)
+    {
+      if (0 < strlen($newNote))
+      {
+        $this->informationObject->setNote(array('userId' => $userId, 'note' => 
$newNote, 'noteTypeId' => QubitTerm::PUBLICATION_NOTE_ID));
+      }
+    }
+
+    // Update general notes (multiple)
+    foreach ((array) $this->getRequestParameter('new_note') as $newNote)
+    {
+      if (0 < strlen($newNote))
+      {
+        $this->informationObject->setNote(array('userId' => $userId, 'note' => 
$newNote, 'noteTypeId' => QubitTerm::GENERAL_NOTE_ID));
+      }
+    }
   }
 
   /**

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