mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix a phutil_json_decode call in CustomField PHID
Summary: I assume this is correct, it fixes my test case and was inconsistent with the rest of the file. Test Plan: Add and Remove a CustomFieldPHID in Maniphest, no longer get errors. Reviewers: btrahan, epriestley Reviewed By: epriestley Subscribers: epriestley, Korvin Maniphest Tasks: T8866 Differential Revision: https://secure.phabricator.com/D13642
This commit is contained in:
parent
d082c33a5d
commit
039be71b87
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,7 @@ abstract class PhabricatorStandardCustomFieldPHIDs
|
||||||
$old = array();
|
$old = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
$new = phutil_json_decode($xaction->getNewValue());
|
$new = json_decode($xaction->getNewValue());
|
||||||
if (!is_array($new)) {
|
if (!is_array($new)) {
|
||||||
$new = array();
|
$new = array();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue