Author: david
Date: 2008-11-03 10:26:24 -0800 (Mon, 03 Nov 2008)
New Revision: 1513

Modified:
   
trunk/qubit/apps/qubit/modules/informationobject/actions/updateAction.class.php
Log:
Fix a simple bug that was causing an error when adding a new creation event to 
an information object with javascript disabled.

Modified: 
trunk/qubit/apps/qubit/modules/informationobject/actions/updateAction.class.php
===================================================================
--- 
trunk/qubit/apps/qubit/modules/informationobject/actions/updateAction.class.php 
    2008-11-03 18:10:41 UTC (rev 1512)
+++ 
trunk/qubit/apps/qubit/modules/informationobject/actions/updateAction.class.php 
    2008-11-03 18:26:24 UTC (rev 1513)
@@ -388,14 +388,14 @@
     // Get an array of creation events (even if there's only one)
     if (!is_array($newCreationEvents = 
$this->getRequestParameter('newCreationEvents')))
     {
-      $newCreationEvents = $this->getRequestParameter('newCreationEvent');
+      $newCreationEvents = 
array($this->getRequestParameter('newCreationEvent'));
     }
     
     // Loop thru new creation events
     foreach($newCreationEvents as $thisEvent)
     {
       $newCreationEvent = new QubitEvent;
-     
+      
       //add creator 
       if ($thisEvent['actorId'])
       {


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