From 509e2f2d114d631a01956acea48b65b168b550d4 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 2 Sep 2014 15:23:24 -0500
Subject: [PATCH] oops: Save priority to cdata at ticket create time

---
 include/class.dynamic_forms.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php
index 279f58a3d..e4b030db4 100644
--- a/include/class.dynamic_forms.php
+++ b/include/class.dynamic_forms.php
@@ -946,7 +946,8 @@ class DynamicFormEntryAnswer extends VerySimpleModel {
     }
 
     function getSearchKeys() {
-        $val = $this->getValue();
+        $val = $this->getField()->to_php(
+            $this->get('value'), $this->get('value_id'));
         if (is_array($val))
             return array_keys($val);
         elseif (is_object($val) && method_exists($val, 'getId'))
-- 
GitLab