mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Conpherence - fix send bug for users with no javascript
Summary: we should do a redirect if its not an ajax request, which solves this problem since folks with no javascript aren't sending ajax requests. Fixes T5049. Test Plan: inverted the predicate, tried ajax requests, and got redirected Reviewers: epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T5049 Differential Revision: https://secure.phabricator.com/D9149
This commit is contained in:
parent
302d5bcec5
commit
45f4431a84
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ final class ConpherenceUpdateController
|
|||
|
||||
$action = $request->getStr('action', ConpherenceUpdateActions::METADATA);
|
||||
$latest_transaction_id = null;
|
||||
$response_mode = 'ajax';
|
||||
$response_mode = $request->isAjax() ? 'ajax' : 'redirect';
|
||||
$error_view = null;
|
||||
$e_file = array();
|
||||
$errors = array();
|
||||
|
|
Loading…
Reference in a new issue