wrongecho Hell yeah!! I was about to feature request exactly this.
Maybe we could get API?
itflow\api\v1\contacts\
contact_model.php - Add after the location_id block:
if (isset($_POST['contact_pin'])) {
$pin = sanitizeInput($_POST['contact_pin']);
} elseif ($contact_row) {
$pin = $contact_row['contact_pin'];
} else {
$pin = '';
}
create.php - Update the INSERT line (line 16) to include:
$insert_sql = mysqli_query($mysqli, "INSERT INTO contacts SET contact_name = '$name', contact_title = '$title', contact_department = '$department', contact_email = '$email', contact_phone = '$phone', contact_extension = '$extension', contact_mobile = '$mobile', contact_pin = '$pin', contact_notes = '$notes', contact_primary = '$primary', contact_important = '$important', contact_billing = '$billing', contact_technical = '$technical', contact_location_id = $location_id, contact_client_id = $client_id");
update.php - Update the UPDATE line (line 18) to include:
$update_sql = mysqli_query($mysqli, "UPDATE contacts SET contact_name = '$name', contact_title =