Added the updateLeaseCount call to the customer update function. Most of the time it will not be necessary, but the purpose of update() is to ensure the customer info is current, so we're obligated to call it.
git-svn-id: file:///svn-source/pmgr/tags/v0.1.0@863 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -247,10 +247,10 @@ class Customer extends AppModel {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// REVISIT <AP>: 20090812
|
// updateLeaseCount is typically handled directly when needed.
|
||||||
// updateLeaseCount is handled directly when needed.
|
// However, this function is used to _ensure_ customer info is
|
||||||
// Should we simplify by just doing it anyway?
|
// current, so we're obligated to call it anyway.
|
||||||
//$this->updateLeaseCount($id);
|
$this->updateLeaseCount($id);
|
||||||
|
|
||||||
$current_leases =
|
$current_leases =
|
||||||
$this->find('all',
|
$this->find('all',
|
||||||
|
|||||||
Reference in New Issue
Block a user