Skip to Content.
Sympa Menu

comanage-dev - [comanage-dev] r267 - registry/trunk/app/Controller

Subject: COmanage Developers List

List archive

[comanage-dev] r267 - registry/trunk/app/Controller


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r267 - registry/trunk/app/Controller
  • Date: Tue, 20 Mar 2012 18:48:39 -0400

Author: benno
Date: 2012-03-20 18:48:39 -0400 (Tue, 20 Mar 2012)
New Revision: 267

Modified:
registry/trunk/app/Controller/CoPeopleController.php
Log:
Cannot have two beforeRenders (due to CO-208)

Modified: registry/trunk/app/Controller/CoPeopleController.php
===================================================================
--- registry/trunk/app/Controller/CoPeopleController.php 2012-03-20
22:13:01 UTC (rev 266)
+++ registry/trunk/app/Controller/CoPeopleController.php 2012-03-20
22:48:39 UTC (rev 267)
@@ -82,28 +82,19 @@
if(!$this->restful){
// generate list of sponsors
$this->set('sponsors',
$this->CoPerson->sponsorList($this->cur_co['Co']['id']));
+
+ // Determine if there are any Enrollment Flows for this CO and if so
pass
+ // them to the view. Currently, we don't check for COU-specific flows.
+
+ $args['conditions']['CoEnrollmentFlow.co_id'] =
$this->cur_co['Co']['id'];
+ // $args['contain'][] = 'CoEnrollmentFlow';
+
+ $this->loadModel('CoEnrollmentFlow');
+ $this->set('co_enrollment_flows', $this->CoEnrollmentFlow->find('all',
$args));
}
}

/**
- * Callback before views are rendered.
- * - postcondition: $co_enrollment_flows set
- *
- * @since COmanage Registry v0.5
- */
-
- function beforeRender() {
- // Determine if there are any Enrollment Flows for this CO and if so pass
- // them to the view. Currently, we don't check for COU-specific flows.
-
- $args['conditions']['CoEnrollmentFlow.co_id'] =
$this->cur_co['Co']['id'];
-// $args['contain'][] = 'CoEnrollmentFlow';
-
- $this->loadModel('CoEnrollmentFlow');
- $this->set('co_enrollment_flows', $this->CoEnrollmentFlow->find('all',
$args));
- }
-
- /**
* Perform any dependency checks required prior to a delete operation.
* - postcondition: Session flash message updated (HTML) or HTTP status
returned (REST)
*



  • [comanage-dev] r267 - registry/trunk/app/Controller, svnlog, 03/20/2012

Archive powered by MHonArc 2.6.16.

Top of Page