Align programme flow with Events: system-generated QR, no customizer.
Deploy Ladill Events / deploy (push) Successful in 31s

Replace the QR-first create and edit experience with simple programme forms that auto-generate Ladill Link codes like events do.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-04 12:39:11 +00:00
co-authored by Cursor
parent a00f032b5b
commit dac095ef92
8 changed files with 234 additions and 4 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class QrCodeManagerService
$type = (string) ($data['type'] ?? '');
$validated = $this->payloadValidator->validateForCreate($type, $data);
$styleInput = $data['style'] ?? null;
if ($type === QrCode::TYPE_EVENT && empty(array_filter((array) $styleInput))) {
if (in_array($type, [QrCode::TYPE_EVENT, QrCode::TYPE_ITINERARY], true) && empty(array_filter((array) $styleInput))) {
$styleInput = $user->getOrCreateQrSetting()->resolvedDefaultStyle();
}
$style = QrStyleDefaults::merge($styleInput);