Changed the logic a little bit in the customer model saveCustomer function, such that we can provide a default customer name if otherwise unspecified. Changed the page titles to reflect Customer vs Contact, since they can easily have the same names.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@228 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-06 16:57:23 +00:00
parent 47104919f2
commit 50e7f58d35
3 changed files with 50 additions and 26 deletions

View File

@@ -87,7 +87,7 @@ class ContactsController extends AppController {
$id));
// Prepare to render.
$title = $contact['Contact']['display_name'];
$title = 'Contact: ' . $contact['Contact']['display_name'];
$this->set(compact('contact', 'title'));
}
@@ -192,7 +192,7 @@ class ContactsController extends AppController {
'conditions' => array('Contact.id' => $id),
));
$title = $this->data['Contact']['display_name'] . " : Edit";
$title = 'Contact: ' . $this->data['Contact']['display_name'] . " : Edit";
}
else {
$title = "Enter New Contact";