Author: david
Date: Tue Aug 11 11:20:43 2009
New Revision: 2998

Log:
Fix bug that would delete the name of a protected term when submitting the edit 
form.

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

Modified: trunk/apps/qubit/modules/term/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/term/actions/editAction.class.php  Tue Aug 11 
11:16:29 2009        (r2997)
+++ trunk/apps/qubit/modules/term/actions/editAction.class.php  Tue Aug 11 
11:20:43 2009        (r2998)
@@ -102,7 +102,10 @@
 
   public function processForm()
   {
-    $this->term->setName($this->getRequestParameter('name'));
+    if (!$this->term->isProtected())
+    {
+      $this->term->setName($this->getRequestParameter('name'));
+    }
     $this->term->setCode($this->getRequestParameter('code'));
     $this->updateParent();
 

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