Added ability to create a new customer directly from the move in operation.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@760 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-24 18:44:30 +00:00
parent bd4610abb3
commit de9a4acd5d
4 changed files with 44 additions and 7 deletions

View File

@@ -155,7 +155,7 @@ class UnitsController extends AppController {
$customer = array();
$unit = array();
if (isset($id)) {
if (!empty($id)) {
$this->Unit->recursive = -1;
$unit = current($this->Unit->read(null, $id));
}