mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-10 23:01:04 +01:00
Fix editing of JSON config values via web UI
Summary: We should set the value if it's valid, not if it's invalid. derpp~ Test Plan: Set `files.viewable-mime-types`. Reviewers: asherkin, codeblock, btrahan, vrana Reviewed By: asherkin CC: aran Differential Revision: https://secure.phabricator.com/D4510
This commit is contained in:
parent
dc62433d17
commit
656a6f9b55
1 changed files with 1 additions and 0 deletions
|
@ -296,6 +296,7 @@ final class PhabricatorConfigEditController
|
|||
$errors[] = pht(
|
||||
'The given value must be valid JSON. This means, among '.
|
||||
'other things, that you must wrap strings in double-quotes.');
|
||||
} else {
|
||||
$set_value = $json;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue