diff --git a/modules/contacts/Add.tpl b/modules/contacts/Add.tpl index dea3d7291..cb0694df4 100755 --- a/modules/contacts/Add.tpl +++ b/modules/contacts/Add.tpl @@ -63,7 +63,7 @@ -  * + diff --git a/modules/contacts/ContactsUI.php b/modules/contacts/ContactsUI.php index a84257f82..5454ee611 100755 --- a/modules/contacts/ContactsUI.php +++ b/modules/contacts/ContactsUI.php @@ -546,7 +546,7 @@ private function onAdd() $departmentsCSV = $this->getTrimmedInput('departmentsCSV', $_POST); /* Bail out if any of the required fields are empty. */ - if (empty($firstName) || empty($lastName) || empty($title)) + if (empty($firstName) || empty($lastName)) { CommonErrors::fatal(COMMONERROR_MISSINGFIELDS, $this, 'Required fields are missing.'); } @@ -835,7 +835,7 @@ private function onEdit() $departmentsCSV = $this->getTrimmedInput('departmentsCSV', $_POST); /* Bail out if any of the required fields are empty. */ - if (empty($firstName) || empty($lastName) || empty($title)) + if (empty($firstName) || empty($lastName)) { CommonErrors::fatal(COMMONERROR_MISSINGFIELDS, $this, 'Required fields are missing.'); } diff --git a/modules/contacts/Edit.tpl b/modules/contacts/Edit.tpl index 87d36cbba..f182cdfc2 100755 --- a/modules/contacts/Edit.tpl +++ b/modules/contacts/Edit.tpl @@ -66,7 +66,7 @@ -  * + diff --git a/modules/contacts/validator.js b/modules/contacts/validator.js index a1f122159..2ae164dc9 100755 --- a/modules/contacts/validator.js +++ b/modules/contacts/validator.js @@ -15,7 +15,6 @@ function checkAddForm(form) errorMessage += checkFirstName(); errorMessage += checkLastName(); errorMessage += checkCompany(); - errorMessage += checkTitle(); if (errorMessage != "") { @@ -33,7 +32,6 @@ function checkEditForm(form) errorMessage += checkFirstName(); errorMessage += checkLastName(); errorMessage += checkCompany(); - errorMessage += checkTitle(); if (errorMessage != "") {