comanage-dev - [comanage-dev] r473 - registry/trunk/app/View/Elements
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r473 - registry/trunk/app/View/Elements
- Date: Fri, 1 Mar 2013 20:13:32 -0500
- Authentication-results: sfpop-ironport01.merit.edu; dkim=neutral (message not signed) header.i=none
Author: marie
Date: 2013-03-01 20:13:31 -0500 (Fri, 01 Mar 2013)
New Revision: 473
Modified:
registry/trunk/app/View/Elements/dropMenu.ctp
Log:
CO558 - removes the dependency of menu on editSelf() in NSF Demographics
Modified: registry/trunk/app/View/Elements/dropMenu.ctp
===================================================================
--- registry/trunk/app/View/Elements/dropMenu.ctp 2013-02-28 02:32:55
UTC (rev 472)
+++ registry/trunk/app/View/Elements/dropMenu.ctp 2013-03-02 01:13:31
UTC (rev 473)
@@ -341,9 +341,19 @@
$args = array(
'plugin' => null,
'controller' => 'co_nsf_demographics',
- 'action' => 'editself',
- 'co' => $co['co_id']
+ 'co' => $co['co_id']
);
+
+ // Adjust the link to the NSF Demographics Controller
according to whether or
+ // not data has been set.
+ if(empty($co_people[0]['CoNsfDemographic']['id'])) {
+ $args['action'] = 'add';
+ $args['copersonid'] = $co_people[0]['CoPerson']['id'];
+ } else {
+ $args['action'] = 'edit';
+ $args[] = $co_people[0]['CoNsfDemographic']['id'];
+ }
+
print $this->Html->link(_txt('me.for',
array($co['co_name'])), $args);
print "</li>";
}
- [comanage-dev] r473 - registry/trunk/app/View/Elements, svnlog, 03/01/2013
Archive powered by MHonArc 2.6.16.