Add contact primary to the API edit ^Cd create

This commit is contained in:
johnnyq
2024-05-10 14:27:04 -04:00
parent 9876c33d2e
commit 3e7f57f64a
3 changed files with 10 additions and 2 deletions

View File

@@ -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) {