Skip to content

Commit

Permalink
Miscellaneous fixes (NOJIRA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jan 25, 2026
1 parent 447b5f8 commit e079748
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/Controller/MatchgridsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function build(string $id) {
$this->Matchgrids->build((int)$id);
$this->Flash->success(__('match.rs.build'));
}
catch(Exception $e) {
catch(\Exception $e) {
$this->Flash->error(__('match.er.build', [$e->getMessage()]));
}

Expand Down
4 changes: 4 additions & 0 deletions app/src/Lib/Match/MatchgridBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ protected function configToSchema(
}
}

if(empty($Matchgrid->matchgrid_setting->referenceid_method)) {
throw new \InvalidArgumentException("Reference ID Method not set for Matchgrid");
}

// If the Matchgrid uses Sequence for the referenceid_method, create the sequence
if($Matchgrid->matchgrid_setting->referenceid_method == ReferenceIdEnum::Sequence) {
$schema->createSequence($Matchgrid->matchgrid_setting->ref_id_sequence_name,
Expand Down

0 comments on commit e079748

Please sign in to comment.