I'm getting the following JS error in an alert box:
TypeError: this.options.onchange.call is not a function
My column is configured with the following:
conf.columns[:sub_contractor].form_ui = :record_select
conf.columns[:sub_contractor].update_columns = :cost_code
def after_render_field(record, column)
if column.name == :sub_contractor
record.cost_code_id = record.sub_contractor.cost_code_id
end
end
If I dismiss the alert, the record_select part seems to work and the
record updates properly. Only the cost_code column is NOT updated. If
I use form_ui = :select, then everything works fine. I have other
record_select columns that don't attempt to update another column that
work fine so I'm thinking that this might be a bug in the
update_column code.
Any ideas?
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.