Ver Fonte

Fix user queries

Before, when adding a user query where the state contains the strict filter, the label applied to the query was wrong.
Now, the strict filter is always removed so the label applied is correct.
Alexis Degrugillier há 11 anos atrás
pai
commit
c791d84ded
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      app/Controllers/configureController.php

+ 3 - 0
app/Controllers/configureController.php

@@ -504,6 +504,9 @@ class FreshRSS_configure_Controller extends Minz_ActionController {
 				unset($query[$key]);
 				unset($query[$key]);
 			}
 			}
 		}
 		}
+		if ($query['state'] & FreshRSS_Entry::STATE_STRICT) {
+			$query['state'] -= FreshRSS_Entry::STATE_STRICT;
+		}
 		$queries[] = $query;
 		$queries[] = $query;
 		$this->view->conf->_queries($queries);
 		$this->view->conf->_queries($queries);
 		$this->view->conf->save();
 		$this->view->conf->save();