mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-10-20 02:11:52 -04:00
Fix feed and category side effect
Before, when deleting a feed or a category, the user queries were deleted as well. No matter if they were related or not. Now, they are deleted only if they are related. I this this fix is not the best way to handle that. I think it would be better if we could find a way to create a UserQuery object from the array. The same applies when displaying the user queries in the interface. See #980
This commit is contained in:
1 parent
5a2bc9261c
commit
271d43b569
1 file changed
+2
@@ -119,6 +119,8 @@ class FreshRSS_ConfigurationSetter {
|
||||
foreach ($values as $value) {
|
||||
if ($value instanceof FreshRSS_UserQuery) {
|
||||
$data['queries'][] = $value->toArray();
|
||||
} elseif (is_array($value)) {
|
||||
$data['queries'][] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user