Only use rw attributes for setting values.

This commit is contained in:
Martin Edenhofer 2015-10-07 07:37:53 +02:00
parent f510b1441f
commit 0bec67ec73

View file

@ -15,8 +15,11 @@ class App.UiElement.ticket_perform_action
# ignore passwords and relations # ignore passwords and relations
if row.type isnt 'password' && row.name.substr(row.name.length-4,4) isnt '_ids' 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] [defaults, groups, elements]