mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Add contact primary to the API edit ^Cd create
This commit is contained in:
@@ -74,6 +74,14 @@ if (isset($_POST['contact_auth_method'])) {
|
||||
$auth_method = '';
|
||||
}
|
||||
|
||||
if (isset($_POST['contact_primary'])) {
|
||||
$primary = intval($_POST['contact_primary']);
|
||||
} elseif ($contact_row) {
|
||||
$primary = $contact_row['contact_primary'];
|
||||
} else {
|
||||
$primary = '0';
|
||||
}
|
||||
|
||||
if (isset($_POST['contact_important'])) {
|
||||
$important = intval($_POST['contact_important']);
|
||||
} elseif ($contact_row) {
|
||||
|
||||
Reference in New Issue
Block a user