Skip to content
Snippets Groups Projects
Commit f1079509 authored by Jared Hancock's avatar Jared Hancock Committed by Peter Rotich
Browse files

queue: Fix inability to drop saved search criteria

parent 2bbe5739
No related branches found
No related tags found
No related merge requests found
......@@ -784,18 +784,20 @@ class SavedSearch extends VerySimpleModel {
});
// Load state from current configuraiton
foreach ($this->getCriteria() as $I) {
list($path, $method, $value) = $I;
if (!($F = $form->getField("{$path}+search")))
continue;
$F->value = true;
if (!$source) {
foreach ($this->getCriteria() as $I) {
list($path, $method, $value) = $I;
if (!($F = $form->getField("{$path}+search")))
continue;
$F->value = true;
if (!($F = $form->getField("{$path}+method")))
continue;
$F->value = $method;
if (!($F = $form->getField("{$path}+method")))
continue;
$F->value = $method;
if ($value && ($F = $form->getField("{$path}+{$method}")))
$F->value = $value;
if ($value && ($F = $form->getField("{$path}+{$method}")))
$F->value = $value;
}
}
return $form;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment