diff --git a/lib/pivotstate/pivotstate.class.php b/lib/pivotstate/pivotstate.class.php index 8650c5079a..d76f24533e 100644 --- a/lib/pivotstate/pivotstate.class.php +++ b/lib/pivotstate/pivotstate.class.php @@ -835,6 +835,12 @@ class pivotState return $errors; } + /** + * Check query filter. + * + * @access public + * @return array + */ public function checkQueryFilter() { $errors = array(); @@ -843,6 +849,12 @@ class pivotState if(empty($filter['field'])) $errors[$index]['field'] = true; if(empty($filter['name'])) $errors[$index]['name'] = true; } + + $addFilter = $this->addQueryFilter; + if(empty($addFilter['field'])) $errors[$index]['field'] = true; + if(empty($addFilter['name'])) $errors[$index]['name'] = true; + + return $errors; } /**