Skip to content
Snippets Groups Projects
Commit 283f86ff authored by Jared Hancock's avatar Jared Hancock
Browse files

Drop the cdata table on field type change

If a field on the ticket details form changes type, recreate the cdata table
parent fdabf274
Branches
Tags
No related merge requests found
...@@ -303,7 +303,8 @@ Signal::connect('model.updated', ...@@ -303,7 +303,8 @@ Signal::connect('model.updated',
array('TicketForm', 'dropDynamicDataView'), array('TicketForm', 'dropDynamicDataView'),
'DynamicFormField', 'DynamicFormField',
// TODO: Lookup the dynamic form to verify {type == 'T'} // TODO: Lookup the dynamic form to verify {type == 'T'}
function($o, $d) { return isset($d['dirty']) && isset($d['dirty']['name']); }); function($o, $d) { return isset($d['dirty'])
&& (isset($d['dirty']['name']) || isset($d['dirty']['type'])); });
require_once(INCLUDE_DIR . "class.json.php"); require_once(INCLUDE_DIR . "class.json.php");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment