Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/contacts/Add.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
<label id="titleLabel" for="title">Title:</label>
</td>
<td class="tdData">
<input type="text" name="title" id="title" class="inputbox" style="width: 150px" />&nbsp;*
<input type="text" name="title" id="title" class="inputbox" style="width: 150px" />
</td>
</tr>

Expand Down
4 changes: 2 additions & 2 deletions modules/contacts/ContactsUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}
Expand Down Expand Up @@ -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.');
}
Expand Down
2 changes: 1 addition & 1 deletion modules/contacts/Edit.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<label id="titleLabel" for="title">Title:</label>
</td>
<td class="tdData">
<input type="text" name="title" id="title" value="<?php $this->_($this->data['title']); ?>" class="inputbox" style="width: 150px" />&nbsp;*
<input type="text" name="title" id="title" value="<?php $this->_($this->data['title']); ?>" class="inputbox" style="width: 150px" />
</td>
</tr>

Expand Down
2 changes: 0 additions & 2 deletions modules/contacts/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ function checkAddForm(form)
errorMessage += checkFirstName();
errorMessage += checkLastName();
errorMessage += checkCompany();
errorMessage += checkTitle();

if (errorMessage != "")
{
Expand All @@ -33,7 +32,6 @@ function checkEditForm(form)
errorMessage += checkFirstName();
errorMessage += checkLastName();
errorMessage += checkCompany();
errorMessage += checkTitle();

if (errorMessage != "")
{
Expand Down
Loading