fixed scadenziario new field, dpi, dpi trash
This commit is contained in:
@@ -20,6 +20,7 @@ try {
|
||||
$notification_days = isset($_POST['notification_days']) && is_numeric($_POST['notification_days']) ? (int)$_POST['notification_days'] : 7;
|
||||
$storage_location = trim($_POST['storage_location'] ?? '') ?: null;
|
||||
$notes = trim($_POST['notes'] ?? '') ?: null;
|
||||
$variazioni = trim($_POST['variazioni'] ?? '') ?: null;
|
||||
$employee_ids = $_POST['employee_ids'] ?? [];
|
||||
$department_names = $_POST['department_names'] ?? [];
|
||||
|
||||
@@ -56,7 +57,7 @@ try {
|
||||
UPDATE scad_deadlines SET
|
||||
subject_id = ?, function_id = ?, notify_function = ?, topic = ?, law_regulation = ?, recurrence_type = ?,
|
||||
due_date = ?, check_date = ?, document_date = ?, notification_days = ?,
|
||||
storage_location = ?, notes = ?, departments = ?
|
||||
storage_location = ?, notes = ?, variazioni = ?, departments = ?
|
||||
WHERE id = ?
|
||||
");
|
||||
$stmt->execute([
|
||||
@@ -72,6 +73,7 @@ try {
|
||||
$notification_days,
|
||||
$storage_location,
|
||||
$notes,
|
||||
$variazioni,
|
||||
$departmentsStr,
|
||||
$id
|
||||
]);
|
||||
@@ -89,8 +91,8 @@ try {
|
||||
$stmt = $pdo->prepare("
|
||||
INSERT INTO scad_deadlines
|
||||
(subject_id, function_id, notify_function, topic, law_regulation, recurrence_type, due_date, check_date,
|
||||
document_date, notification_days, storage_location, notes, created_by, departments)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
document_date, notification_days, storage_location, notes, variazioni, created_by, departments)
|
||||
VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
");
|
||||
$stmt->execute([
|
||||
$subject_id,
|
||||
@@ -105,6 +107,7 @@ try {
|
||||
$notification_days,
|
||||
$storage_location,
|
||||
$notes,
|
||||
$variazioni,
|
||||
$currentUserId,
|
||||
$departmentsStr
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user