mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 16:52:41 +01:00
Redirect after post when changing Diffusion view
Summary: I spend most time in software development by being lazy. Test Plan: Changed view, reloaded page, viewed the file without sending the form. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3012
This commit is contained in:
parent
e746ccfeeb
commit
43b94a6f95
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ final class DiffusionBrowseFileController extends DiffusionController {
|
|||
PhabricatorUserPreferences::PREFERENCE_DIFFUSION_VIEW,
|
||||
$selected);
|
||||
$preferences->save();
|
||||
|
||||
return id(new AphrontRedirectResponse())
|
||||
->setURI($request->getRequestURI()->alter('view', $selected));
|
||||
}
|
||||
|
||||
$needs_blame = ($selected == 'blame' || $selected == 'plainblame');
|
||||
|
|
Loading…
Reference in a new issue