comanage-dev - [comanage-dev] r480 - registry/trunk/app/Controller
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r480 - registry/trunk/app/Controller
- Date: Tue, 5 Mar 2013 15:20:26 -0500
- Authentication-results: sfpop-ironport04.merit.edu; dkim=neutral (message not signed) header.i=none
Author: marie
Date: 2013-03-05 15:20:26 -0500 (Tue, 05 Mar 2013)
New Revision: 480
Modified:
registry/trunk/app/Controller/AppController.php
Log:
co558 finish refactoring of demographics menu
Modified: registry/trunk/app/Controller/AppController.php
===================================================================
--- registry/trunk/app/Controller/AppController.php 2013-03-05 20:07:47
UTC (rev 479)
+++ registry/trunk/app/Controller/AppController.php 2013-03-05 20:20:26
UTC (rev 480)
@@ -1102,7 +1102,7 @@
$menu['cos'][ $data['Co']['id'] ] = $data['Co']['name'];
} elseif($this->Session->check('Auth.User.cos')) {
// Show only COs that a user is a member of
- foreach($this->Session->read('Auth.User.cos') as $name => $data){
+ foreach($this->Session->read('Auth.User.cos') as $name => $data)
$menu['cos'][ $data['co_id'] ] = $data['co_name'];
}
@@ -1117,7 +1117,7 @@
// Determine user's own NSF Demographics ids
$this->loadModel('CoNsfDemographic');
-
+
foreach($this->Session->read('Auth.User.cos') as $name => $data){
// Grab co person id
$demodata =
$this->CoNsfDemographic->findByCoPersonId($data['co_person_id']);
- [comanage-dev] r480 - registry/trunk/app/Controller, svnlog, 03/05/2013
Archive powered by MHonArc 2.6.16.