mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-26 18:22:50 -04:00
Improve consistency of slider behavior after submitting form (#8612)
Closes https://github.com/FreshRSS/FreshRSS/issues/8529 * Preserve `error` parameter after submitting form in subscription management
This commit is contained in:
@@ -174,7 +174,9 @@ class FreshRSS_category_Controller extends FreshRSS_ActionController {
|
||||
|
||||
invalidateHttpCache();
|
||||
|
||||
$url_redirect = ['c' => 'subscription', 'params' => ['id' => $id, 'type' => 'category']];
|
||||
$from = Minz_Request::paramString('from');
|
||||
$prev_controller = $from === 'update' ? 'category' : 'subscription';
|
||||
$url_redirect = ['c' => $prev_controller, 'a' => $from, 'params' => ['id' => $id, 'type' => 'category']];
|
||||
if (false !== $categoryDAO->updateCategory($id, $values)) {
|
||||
Minz_Request::good(
|
||||
_t('feedback.sub.category.updated'),
|
||||
|
||||
Reference in New Issue
Block a user