Added the Containable behavior back into the AppModel, since it's obviously getting used in every controller.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@91 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -120,7 +120,6 @@ class LeasesController extends AppController {
|
||||
}
|
||||
|
||||
// Get details about the lease and its ledgers (no ledger entries yet)
|
||||
$this->Lease->Behaviors->attach('Containable');
|
||||
$lease = $this->Lease->find
|
||||
('first',
|
||||
array('contain' =>
|
||||
@@ -134,7 +133,6 @@ class LeasesController extends AppController {
|
||||
'limit' => 2
|
||||
)
|
||||
);
|
||||
$this->Lease->Behaviors->detach('Containable');
|
||||
|
||||
// Summarize each ledger
|
||||
$this->Lease->statsMerge($lease,
|
||||
|
||||
Reference in New Issue
Block a user