From a03dec5df79885125e0eb8e962027499d80ef02f Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Wed, 15 Jan 2014 13:31:30 -0600 Subject: [PATCH] cdata: Only apply updates to ticket details If the entry answer being updated does not affect the ticket details form (with type=T), then the updates do not need to be applied to the ticket__cdata table. --- include/class.dynamic_forms.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class.dynamic_forms.php b/include/class.dynamic_forms.php index 1ee982edc..ccfe4d27e 100644 --- a/include/class.dynamic_forms.php +++ b/include/class.dynamic_forms.php @@ -245,7 +245,7 @@ class TicketForm extends DynamicForm { static function updateDynamicDataView($answer, $data) { // TODO: Detect $data['dirty'] for value and value_id // We're chiefly concerned with Ticket form answers - if (!($e = $answer->getEntry()) || $e->get('object_type') != 'T') + if (!($e = $answer->getEntry()) || $e->getForm()->get('type') != 'T') return; // $record = array(); -- GitLab