comanage-dev - [comanage-dev] r296 - registry/trunk/app/Controller
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r296 - registry/trunk/app/Controller
- Date: Sun, 20 May 2012 20:30:14 -0400
Author: benno
Date: 2012-05-20 20:30:14 -0400 (Sun, 20 May 2012)
New Revision: 296
Modified:
registry/trunk/app/Controller/CoPetitionsController.php
Log:
Better checking on Petition CoOrgIdentityLink save
Modified: registry/trunk/app/Controller/CoPetitionsController.php
===================================================================
--- registry/trunk/app/Controller/CoPetitionsController.php 2012-05-21
00:29:11 UTC (rev 295)
+++ registry/trunk/app/Controller/CoPetitionsController.php 2012-05-21
00:30:14 UTC (rev 296)
@@ -273,12 +273,14 @@
// Create a CO Org Identity Link
- $coOrgLink = array();
- $coOrgLink['CoOrgIdentityLink']['org_identity_id'] = $orgIdentityID;
- $coOrgLink['CoOrgIdentityLink']['co_person_id'] = $coPersonID;
-
-
if(!$this->CoPetition->EnrolleeCoPerson->CoOrgIdentityLink->save($coOrgLink))
{
- $fail = true;
+ if(!$fail) {
+ $coOrgLink = array();
+ $coOrgLink['CoOrgIdentityLink']['org_identity_id'] = $orgIdentityID;
+ $coOrgLink['CoOrgIdentityLink']['co_person_id'] = $coPersonID;
+
+
if(!$this->CoPetition->EnrolleeCoPerson->CoOrgIdentityLink->save($coOrgLink))
{
+ $fail = true;
+ }
}
$coPetitionID = null;
- [comanage-dev] r296 - registry/trunk/app/Controller, svnlog, 05/20/2012
Archive powered by MHonArc 2.6.16.