Skip to Content.
Sympa Menu

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

Subject: COmanage Developers List

List archive

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


Chronological Thread 
  • From:
  • To:
  • Subject: [comanage-dev] r229 - registry/trunk/app/Controller
  • Date: Fri, 17 Feb 2012 08:43:49 -0500

Author: benno
Date: 2012-02-17 08:43:49 -0500 (Fri, 17 Feb 2012)
New Revision: 229

Modified:
registry/trunk/app/Controller/MVPAController.php
Log:
Fix dynamic binding of CO model for CO-249

Modified: registry/trunk/app/Controller/MVPAController.php
===================================================================
--- registry/trunk/app/Controller/MVPAController.php 2012-02-16 20:26:13
UTC (rev 228)
+++ registry/trunk/app/Controller/MVPAController.php 2012-02-17 13:43:49
UTC (rev 229)
@@ -68,11 +68,12 @@

if($this->restful && $this->requires_co) {
// For REST views, the CO isn't required by the data model since it's
- // implied by the person ID. Unbind. We do this after beforeFilter()
+ // implied by the person ID. We can't unload the model (though we could
+ // figure out associations and $models->unbindModel), but we don't
really
+ // need to as long as we flag requires_co=false. We do this after
beforeFilter()
// because $this->restful gets calculated there.

$this->requires_co = false;
- $model->unloadModel('Co');
}
}
}



  • [comanage-dev] r229 - registry/trunk/app/Controller, svnlog, 02/17/2012

Archive powered by MHonArc 2.6.16.

Top of Page