Author: sevein
Date: Mon Jul 30 20:43:00 2012
New Revision: 12014

Log:
Submit form only when it is available, fixes issues 2364 and 2365

Modified:
   trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php

Modified: trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Mon Jul 
30 20:31:12 2012        (r12013)
+++ trunk/apps/qubit/modules/digitalobject/actions/editAction.class.php Mon Jul 
30 20:43:00 2012        (r12014)
@@ -22,7 +22,7 @@
  *
  * @package    qubit
  * @subpackage digital object
- * @author     david juhasz <[email protected]>
+ * @author     David Juhasz <[email protected]>
  * @version    SVN: $Id$
  */
 class DigitalObjectEditAction extends sfAction
@@ -182,6 +182,11 @@
     // Process reference/thumbnail rights components
     foreach ($this->representations as $usageId => $representation)
     {
+      if (!isset($this["rightEditComponent_$usageId"]))
+      {
+        continue;
+      }
+
       $this["rightEditComponent_$usageId"]->processForm();
       $representation->save();
     }

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