From 0bec67ec73e759188d8ff38862b8eba7e3f5554b Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Oct 2015 07:37:53 +0200 Subject: [PATCH] Only use rw attributes for setting values. --- .../controllers/_ui_element/ticket_perform_action.coffee | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee index 13fa61550..3d4f54140 100644 --- a/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee +++ b/app/assets/javascripts/app/controllers/_ui_element/ticket_perform_action.coffee @@ -15,8 +15,11 @@ class App.UiElement.ticket_perform_action # ignore passwords and relations if row.type isnt 'password' && row.name.substr(row.name.length-4,4) isnt '_ids' - config = _.clone(row) - elements["#{groupKey}.#{config.name}"] = config + + # ignore readonly attributes + if !row.readonly + config = _.clone(row) + elements["#{groupKey}.#{config.name}"] = config [defaults, groups, elements]