Align programme flow with Events: system-generated QR, no customizer.
Deploy Ladill Events / deploy (push) Successful in 31s
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user