comanage-dev - [comanage-dev] r238 - registry/trunk/app/View/CoNsfDemographics
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r238 - registry/trunk/app/View/CoNsfDemographics
- Date: Fri, 24 Feb 2012 21:44:29 -0500
Author: marie
Date: 2012-02-24 21:44:29 -0500 (Fri, 24 Feb 2012)
New Revision: 238
Modified:
registry/trunk/app/View/CoNsfDemographics/fields.inc
Log:
co259
Modified: registry/trunk/app/View/CoNsfDemographics/fields.inc
===================================================================
--- registry/trunk/app/View/CoNsfDemographics/fields.inc 2012-02-24
23:46:02 UTC (rev 237)
+++ registry/trunk/app/View/CoNsfDemographics/fields.inc 2012-02-25
02:44:29 UTC (rev 238)
@@ -58,7 +58,19 @@
// Set hidden defaults for CO and CoPerson id so users don't need to see it
$args = array('default' => $cur_co['Co']['id']);
print $this->Form->hidden('co_id', $args). "\n";
- $args = array('default' =>
$this->request->params['named']['co_person_id']);
+
+ // Get Co Person ID
+ if(isset($this->request->params['named']['co_person_id']))
+ {
+ // For edit
+ $args = array('default' =>
$this->request->params['named']['co_person_id']);
+ }
+ else
+ {
+ // Get ID for add
+ $args = array('default' =>
$this->request->data['CoNsfDemographic']['co_person_id']);
+ }
+
print $this->Form->hidden('co_person_id', $args). "\n";
print "
- [comanage-dev] r238 - registry/trunk/app/View/CoNsfDemographics, svnlog, 02/24/2012
Archive powered by MHonArc 2.6.16.