Skip to content

Commit

Permalink
Fix handling of required attribute (CO-1770)
Browse files Browse the repository at this point in the history
  • Loading branch information
Benn Oshrin committed Jul 22, 2019
1 parent e5ad581 commit 307c9da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/Lib/Match/MatchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,11 @@ protected function search(string $mode,
if(!$val) {
if($ruleattr->attribute->required) {
Log::write('debug', $sor . "/" . $sorid . " No value found for required attribute " . $ruleattr->attribute->name . " skipping rule " . $rule->name);
throw new \RuntimeException(__('match.er.attr.req', [$ruleattr->attribute->name]));
continue 2;
}

Log::write('debug', $sor . "/" . $sorid . " No value found for attribute " . $ruleattr->attribute->name . " skipping rule " . $rule->name);
continue 2;
Log::write('debug', $sor . "/" . $sorid . " No value found for attribute " . $ruleattr->attribute->name . " skipping");
continue;
}

$andclause = "";
Expand Down

0 comments on commit 307c9da

Please sign in to comment.