comanage-dev - [comanage-dev] r328 - registry/trunk/app/Console/Command
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r328 - registry/trunk/app/Console/Command
- Date: Mon, 30 Jul 2012 01:36:20 -0400
Author: benno
Date: 2012-07-30 01:36:20 -0400 (Mon, 30 Jul 2012)
New Revision: 328
Modified:
registry/trunk/app/Console/Command/SetupShell.php
Log:
Need status for OrgIdentity identifier (CO-397)
Modified: registry/trunk/app/Console/Command/SetupShell.php
===================================================================
--- registry/trunk/app/Console/Command/SetupShell.php 2012-07-30 05:34:42
UTC (rev 327)
+++ registry/trunk/app/Console/Command/SetupShell.php 2012-07-30 05:36:20
UTC (rev 328)
@@ -94,10 +94,8 @@
)
);
- if(!$this->OrgIdentity->saveAll($op))
- print_r($this->OrgIdentity->invalidFields());
- else
- $op_id = $this->OrgIdentity->id;
+ $this->OrgIdentity->saveAll($op);
+ $op_id = $this->OrgIdentity->id;
// Add the OrgIdentity's identifier
@@ -106,14 +104,13 @@
'identifier' => $user,
'type' => IdentifierEnum::UID,
'login' => true,
- 'org_identity_id' => $op_id
+ 'org_identity_id' => $op_id,
+ 'status' => StatusEnum::Active
)
);
- if(!$this->Identifier->save($id))
- print_r($this->Identifier->invalidFields());
- else
- $id_id = $this->Identifier->id;
+ $this->Identifier->save($id);
+ $id_id = $this->Identifier->id;
// Add the OrgIdentity to the CO
// (1) Create a CO Person
- [comanage-dev] r328 - registry/trunk/app/Console/Command, svnlog, 07/30/2012
Archive powered by MHonArc 2.6.16.