Add occurrence checklist submodule
This commit is contained in:
1 parent
5dbbac35c3
commit
f9b5383ae9
12 files changed
+254
-2
No files matched your search
@@ -63,6 +63,13 @@ if ($requestMethod === 'POST') {
|
||||
$day = market_management_delete_day($pdo, $id);
|
||||
echo json_encode(['ok' => true, 'day' => $day]);
|
||||
exit;
|
||||
} elseif (($payload['action'] ?? '') === 'update_checklist') {
|
||||
$checklist = market_management_update_occurrence_checklist($pdo, $id, [
|
||||
'items' => $payload['items'] ?? null,
|
||||
'comment' => $payload['comment'] ?? null,
|
||||
]);
|
||||
echo json_encode(['ok' => true, 'checklist' => $checklist], JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES);
|
||||
exit;
|
||||
} elseif ($scope === 'day') {
|
||||
market_management_update_day($pdo, $id, $fields);
|
||||
} elseif (in_array($scope, ['occurrence', 'status', 'overview', 'participation', 'infrastructure', 'travel', 'notes'], true)) {
|
||||
|
||||
Reference in new issue
Block a user