Skip to content

Commit

Permalink
fix(form_validator): possible call to non existing method
Browse files Browse the repository at this point in the history
Group itemtype does not has getFromDBByName()

Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Jun 12, 2019
1 parent bb92244 commit 7c85532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/form_validator.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function import($forms_id = 0, $validator = []) {
$crit = [
'name' => $validator['_item'],
];
if (!$linkedItem->getFromDBByName($crit)) {
if (!$linkedItem->getFromDBByCrit($crit)) {
// validator not found. Let's ignore it
return false;
}
Expand Down

0 comments on commit 7c85532

Please sign in to comment.