Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit b7c4998

Browse files
Only show button in catalogue number assignment state
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent f0e7538 commit b7c4998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/WineController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function index(Competition $competition) {
131131
'edit_chosen' => $competition->competitionState->id === CompetitionState::STATE_CHOOSE,
132132
'show_complete_choosing' => $competition->competitionState->id === CompetitionState::STATE_CHOOSE,
133133
'show_import_catalogue_numbers' => $competition->competitionState->id === CompetitionState::STATE_CATALOGUE_NUMBERS,
134-
'show_complete_catalogue_numbers' => $competition->competitionState->id >= CompetitionState::STATE_CATALOGUE_NUMBERS && $this->tastingCatalogueHandler->allWinesHaveBeenAssigned($competition),
134+
'show_complete_catalogue_numbers' => $competition->competitionState->id === CompetitionState::STATE_CATALOGUE_NUMBERS && $this->tastingCatalogueHandler->allWinesHaveBeenAssigned($competition),
135135
'export_flaws' => $competition->competitionState->id >= CompetitionState::STATE_KDB,
136136
'show_enrollment_pdf_export' => $competition->competitionState->is(CompetitionState::STATE_ENROLLMENT),
137137
]);

0 commit comments

Comments
 (0)