Author: jablko
Date: Thu Oct 14 16:28:40 2010
New Revision: 8138
Log:
Set primary contact only once
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:27:47 2010 (r8137)
+++ trunk/apps/qubit/modules/repository/actions/editAction.class.php Thu Oct
14 16:28:40 2010 (r8138)
@@ -298,7 +298,6 @@
$contactInformation = new QubitContactInformation;
$contactInformation->actor = $this->resource;
$contactInformation->contactType = $this->request->contact_type;
- $contactInformation->primaryContact = $this->request->primary_contact;
$contactInformation->contactPerson = $this->request->contact_person;
$contactInformation->streetAddress = $this->request->street_address;
$contactInformation->city = $this->request->city;
@@ -313,7 +312,7 @@
$contactInformation->save();
- if ($contactInformation->getPrimaryContact())
+ if ($this->request->primary_contact)
{
$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.