From: Iain Patterson Date: Wed, 10 Apr 2013 08:20:18 +0000 (-0400) Subject: Added contact notes field. X-Git-Tag: 2013-04-10~6 X-Git-Url: http://git.iain.cx/?p=readifood.git;a=commitdiff_plain;h=a034b9e4d45513c3bd147e45fd969c14162fb13d Added contact notes field. Allow freeform notes for a contact, for instance for quickly noting the family makeup and dietary requirements during a phone call so that more details attributes can be specified when time pressure is relaxed. --- diff --git a/lib/contact.php b/lib/contact.php index ccc932c..3dd0fc3 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -250,6 +250,12 @@ } echo " \n"; echo "\n"; + + /* Notes. */ + echo "\n"; + echo " Notes\n"; + echo " \n"; + echo "\n"; } function show_new_contact_form($city_id = null) { @@ -354,6 +360,7 @@ $telephone1 = $_POST['telephone1']; $telephone2 = $_POST['telephone2']; $email = $_POST['email']; + $notes = $_POST['notes']; $contact->setRole($role); $contact->setForename($forename); @@ -363,6 +370,7 @@ $contact->setTelephone1($telephone1); $contact->setTelephone2($telephone2); $contact->setEmail($email); + $contact->setNotes($notes); $contact->setAddressId($address->getId()); try { diff --git a/propel/schema.xml b/propel/schema.xml index 445574d..b6a4804 100644 --- a/propel/schema.xml +++ b/propel/schema.xml @@ -61,6 +61,7 @@ +