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:
@@ -118,7 +118,6 @@ class LedgersController extends AppController {
|
||||
}
|
||||
|
||||
// Get details about the ledger itself (no entries yet)
|
||||
$this->Ledger->Behaviors->attach('Containable');
|
||||
$ledger = $this->Ledger->find
|
||||
('first',
|
||||
array('contain' =>
|
||||
@@ -128,7 +127,6 @@ class LedgersController extends AppController {
|
||||
'conditions' => array(array('Ledger.id' => $id)),
|
||||
)
|
||||
);
|
||||
$this->Ledger->Behaviors->detach('Containable');
|
||||
|
||||
// Get all ledger entries of this ledger
|
||||
$ledger['LedgerEntry'] = $this->Ledger->findLedgerEntries
|
||||
|
||||
Reference in New Issue
Block a user