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@91 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -170,7 +170,6 @@ class AccountsController extends AppController {
|
||||
}
|
||||
|
||||
// Get details about the account and its ledgers (no ledger entries yet)
|
||||
$this->Account->Behaviors->attach('Containable');
|
||||
$account = $this->Account->find
|
||||
('first',
|
||||
array('contain' =>
|
||||
@@ -184,7 +183,6 @@ class AccountsController extends AppController {
|
||||
'conditions' => array(array('Account.id' => $id)),
|
||||
)
|
||||
);
|
||||
$this->Account->Behaviors->detach('Containable');
|
||||
|
||||
// Get all ledger entries of the CURRENT ledger
|
||||
$entries = $this->Account->findLedgerEntries($id);
|
||||
|
||||
Reference in New Issue
Block a user