From 933d45d5cf624f9bfc2199c9af53f45b7b29ef5c Mon Sep 17 00:00:00 2001 From: Gareth Evans Date: Mon, 24 Jun 2013 06:32:16 -0700 Subject: [PATCH] Fixes bug introduced by D6251 Summary: Casting the defaul custom field storage to an int, need to stop that! Test Plan: Use some custom fields, make sure they work as expected. Fixes T3444 Reviewers: epriestley, mbishopim3 Reviewed By: mbishopim3 CC: aran, Korvin, mbishopim3 Maniphest Tasks: T3444 Differential Revision: https://secure.phabricator.com/D6282 --- .../ManiphestAuxiliaryFieldDefaultSpecification.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldDefaultSpecification.php b/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldDefaultSpecification.php index 980b87967b..50a338bf7c 100644 --- a/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldDefaultSpecification.php +++ b/src/applications/maniphest/auxiliaryfield/ManiphestAuxiliaryFieldDefaultSpecification.php @@ -205,8 +205,10 @@ class ManiphestAuxiliaryFieldDefaultSpecification case self::TYPE_USER: case self::TYPE_USERS: return json_encode($this->getValue()); - default: + case self::TYPE_DATE: return (int)$this->getValue(); + default: + return $this->getValue(); } }