Author: jablko
Date: Thu Oct 14 16:20:12 2010
New Revision: 8134

Log:
Drop condition

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

Modified: trunk/apps/qubit/modules/repository/actions/editAction.class.php
==============================================================================
--- trunk/apps/qubit/modules/repository/actions/editAction.class.php    Thu Oct 
14 16:18:10 2010        (r8133)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php    Thu Oct 
14 16:20:12 2010        (r8134)
@@ -283,42 +283,39 @@
 
   public function updateContactInformation()
   {
-    if ($this->resource->getId())
+    if (($this->request->contact_type) ||
+    ($this->request->contact_person) ||
+    ($this->request->street_address) ||
+    ($this->request->city) ||
+    ($this->request->region) ||
+    ($this->request->country_code) ||
+    ($this->request->postal_code) ||
+    ($this->request->telephone) ||
+    ($this->request->fax) ||
+    ($this->request->email) ||
+    ($this->request->website))
     {
-      if (($this->request->contact_type) ||
-      ($this->request->contact_person) ||
-      ($this->request->street_address) ||
-      ($this->request->city) ||
-      ($this->request->region) ||
-      ($this->request->country_code) ||
-      ($this->request->postal_code) ||
-      ($this->request->telephone) ||
-      ($this->request->fax) ||
-      ($this->request->email) ||
-      ($this->request->website))
-      {
-        $contactInformation = new QubitContactInformation;
-        $contactInformation->setActorId($this->resource->getId());
-        $contactInformation->setContactType($this->request->contact_type);
-        
$contactInformation->setPrimaryContact($this->request->primary_contact);
-        $contactInformation->setContactPerson($this->request->contact_person);
-        $contactInformation->setStreetAddress($this->request->street_address);
-        $contactInformation->setCity($this->request->city);
-        $contactInformation->setRegion($this->request->region);
-        $contactInformation->setCountryCode($this->request->country_code);
-        $contactInformation->setPostalCode($this->request->postal_code);
-        $contactInformation->setTelephone($this->request->telephone);
-        $contactInformation->setFax($this->request->fax);
-        $contactInformation->setEmail($this->request->email);
-        $contactInformation->setWebsite($this->request->website);
-        $contactInformation->setNote($this->request->contact_information_note);
+      $contactInformation = new QubitContactInformation;
+      $contactInformation->setActorId($this->resource->getId());
+      $contactInformation->setContactType($this->request->contact_type);
+      $contactInformation->setPrimaryContact($this->request->primary_contact);
+      $contactInformation->setContactPerson($this->request->contact_person);
+      $contactInformation->setStreetAddress($this->request->street_address);
+      $contactInformation->setCity($this->request->city);
+      $contactInformation->setRegion($this->request->region);
+      $contactInformation->setCountryCode($this->request->country_code);
+      $contactInformation->setPostalCode($this->request->postal_code);
+      $contactInformation->setTelephone($this->request->telephone);
+      $contactInformation->setFax($this->request->fax);
+      $contactInformation->setEmail($this->request->email);
+      $contactInformation->setWebsite($this->request->website);
+      $contactInformation->setNote($this->request->contact_information_note);
 
-        $contactInformation->save();
+      $contactInformation->save();
 
-        if ($contactInformation->getPrimaryContact())
-        {
-          $contactInformation->makePrimaryContact();
-        }
+      if ($contactInformation->getPrimaryContact())
+      {
+        $contactInformation->makePrimaryContact();
       }
     }
   }

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