comanage-dev - [comanage-dev] r259 - registry/trunk/app/Controller
Subject: COmanage Developers List
List archive
- From:
- To:
- Subject: [comanage-dev] r259 - registry/trunk/app/Controller
- Date: Tue, 13 Mar 2012 00:09:31 -0400
Author: skoranda
Date: 2012-03-13 00:09:31 -0400 (Tue, 13 Mar 2012)
New Revision: 259
Modified:
registry/trunk/app/Controller/CoPeopleController.php
Log:
CO-284
Fix "check co_id before calling sponsorList"
Modified: registry/trunk/app/Controller/CoPeopleController.php
===================================================================
--- registry/trunk/app/Controller/CoPeopleController.php 2012-03-13
02:01:56 UTC (rev 258)
+++ registry/trunk/app/Controller/CoPeopleController.php 2012-03-13
04:09:31 UTC (rev 259)
@@ -68,9 +68,21 @@
$this->set('pool_org_identities',
$this->CmpEnrollmentConfiguration->orgIdentitiesPooled());
parent::beforeFilter();
+ }
- // generate list of sponsors
- $this->set('sponsors',
$this->CoPerson->sponsorList($this->cur_co['Co']['id']));
+ /**
+ * Callback after controller methods are invoked but before views are
rendered.
+ * - precondition: Request Handler component has set $this->request
+ * - postcondition: Set $sponsors
+ *
+ * @since COmanage Registry v0.4
+ */
+
+ function beforeRender() {
+ if(!$this->restful){
+ // generate list of sponsors
+ $this->set('sponsors',
$this->CoPerson->sponsorList($this->cur_co['Co']['id']));
+ }
}
/**
- [comanage-dev] r259 - registry/trunk/app/Controller, svnlog, 03/13/2012
Archive powered by MHonArc 2.6.16.