1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-09-20 01:08:50 +02: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:
Chad Little 2015-07-16 21:02:01 -07:00
parent d082c33a5d
commit 039be71b87

View file

@ -118,7 +118,7 @@ abstract class PhabricatorStandardCustomFieldPHIDs
$old = array();
}
$new = phutil_json_decode($xaction->getNewValue());
$new = json_decode($xaction->getNewValue());
if (!is_array($new)) {
$new = array();
}