mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Switched contact to use ?? 0 in post for checkbox items that are not checked, this save from creating an extra hidden form field in the form model hence cleaner code
This commit is contained in:
@@ -9,10 +9,10 @@ $extension = preg_replace("/[^0-9]/", '', $_POST['extension']);
|
||||
$mobile = preg_replace("/[^0-9]/", '', $_POST['mobile']);
|
||||
$email = sanitizeInput($_POST['email']);
|
||||
$notes = sanitizeInput($_POST['notes']);
|
||||
$contact_primary = intval($_POST['contact_primary']);
|
||||
$contact_important = intval($_POST['contact_important']);
|
||||
$contact_billing = intval($_POST['contact_billing']);
|
||||
$contact_technical = intval($_POST['contact_technical']);
|
||||
$contact_primary = intval($_POST['contact_primary'] ?? 0);
|
||||
$contact_important = intval($_POST['contact_important'] ?? 0);
|
||||
$contact_billing = intval($_POST['contact_billing'] ?? 0);
|
||||
$contact_technical = intval($_POST['contact_technical'] ?? 0);
|
||||
$location_id = intval($_POST['location']);
|
||||
$pin = sanitizeInput($_POST['pin']);
|
||||
$auth_method = sanitizeInput($_POST['auth_method']);
|
||||
|
||||
Reference in New Issue
Block a user