@@ 1165-1175 (lines=11) @@ | ||
1162 | } |
|
1163 | ||
1164 | $new_filters = []; |
|
1165 | foreach ($sequence as $id) |
|
1166 | { |
|
1167 | foreach ($old_filters as $filter) |
|
1168 | { |
|
1169 | if ($filter['id'] === $id) { |
|
1170 | $new_filters[] = $filter; |
|
1171 | break; |
|
1172 | } |
|
1173 | } |
|
1174 | } |
|
1175 | if ($res) { |
|
1176 | $res->filters = $new_filters; |
|
1177 | $res->save(); |
|
1178 | } |
@@ 269-279 (lines=11) @@ | ||
266 | } |
|
267 | ||
268 | $new_filters = []; |
|
269 | foreach ($sequence as $id) |
|
270 | { |
|
271 | foreach ($old_filters as $filter) |
|
272 | { |
|
273 | if ($filter['id'] === $id) { |
|
274 | $new_filters[] = $filter; |
|
275 | break; |
|
276 | } |
|
277 | } |
|
278 | } |
|
279 | ||
280 | if ($res) { |
|
281 | $res->filters = $new_filters; |
|
282 | $res->save(); |