Skip to content

Commit d4f4f95

Browse files
committed
Show "Generate PDF form" action button, already if just one check was done
1 parent 9bf134d commit d4f4f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controller/Admin/PaymentOrderCrudController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ public function configureActions(Actions $actions): Actions
343343
->linkToRoute('payment_order_pdf_stura', fn(PaymentOrder $paymentOrder): array => [
344344
'id' => $paymentOrder->getId(),
345345
])
346-
->displayIf(fn(PaymentOrder $paymentOrder): bool => $paymentOrder->isFactuallyCorrectChecked() && $paymentOrder->isMathematicallyCorrectChecked())
347-
->setCssClass('btn btn-success');
346+
->displayIf(fn(PaymentOrder $paymentOrder): bool => $paymentOrder->isFactuallyCorrectChecked() || $paymentOrder->isMathematicallyCorrectChecked())
347+
->setCssClass('btn btn-primary');
348348

349349
$regenerate_reference = Action::new('update_reference', 'Verwendungszweck aktualisieren', 'fas fa-arrows-rotate')
350350
->linkToCrudAction('updateReference');

0 commit comments

Comments
 (0)