Skip to content

Commit

Permalink
Fix loading search arguments from $formdata in case of an AJAX submit
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Velosy committed Sep 25, 2024
1 parent 33b0fd2 commit c65de0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion field/field_class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ public function format_search_value($searchparams) {
*/
public function parse_search($formdata, $i) {
$fieldname = "f_{$i}_{$this->field->id}";
return optional_param_array($fieldname, false, PARAM_NOTAGS);
return is_array($formdata->$fieldname) ? $formdata->$fieldname : false;
}

/**
Expand Down

0 comments on commit c65de0e

Please sign in to comment.