mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-03-27 02:32:49 -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:
@@ -111,10 +111,17 @@ class FreshRSS_index_Controller extends FreshRSS_ActionController {
|
||||
|
||||
$id = Minz_Request::paramInt('id');
|
||||
if ($id !== 0) {
|
||||
$view = Minz_Request::paramString('a');
|
||||
$url_redirect = ['c' => 'subscription', 'a' => 'feed', 'params' => ['id' => (string)$id, 'from' => $view]];
|
||||
Minz_Request::forward($url_redirect, true);
|
||||
return;
|
||||
if (Minz_Request::paramString('type') === 'tag') {
|
||||
$tagDAO = FreshRSS_Factory::createTagDao();
|
||||
$tag = $tagDAO->searchById($id);
|
||||
$this->view->tag = $tag;
|
||||
} else {
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
$feed = $feedDAO->searchById($id);
|
||||
$this->view->feed = $feed;
|
||||
}
|
||||
$this->view->displaySlider = true;
|
||||
$this->view->cfrom = Minz_Request::actionName();
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user