marcelbonnet / redmine_tables

Adds Tables with its own workflows to Redmine. Use it with/without Projects and Tasks.
1 stars 0 forks source link

Issue with Custom Fields of Type: Key/Value List #1

Open nayefeb opened 2 years ago

nayefeb commented 2 years ago

Hello,

Thanks for creating this plugin! The new features over the Custom Tables plugins are great!

I noticed the following issue when testing the plugin wanted to point out to you:

The following is the line that appears in the log: I, [2022-03-30T11:37:31.608821 #1] INFO -- : Parameters: {"utf8"=>"✓", "authenticity_token"=>"xxxx", "back_url"=>"/issues/1", "custom_entity"=>{"issue_id"=>"1", "custom_field_values"=>{"1"=>["1", "2", ""]}, "custom_table_id"=>"1"}, "commit"=>"Save"}

Note that I tested the above on a fresh installation of Redmine that has only the following plugins: image image

Hope you will be able to fix this.

Thanks

marcelbonnet commented 2 years ago

Thanks for the information.

The bug was reproduced. The value is not saved when the field is marked for allowing "multiple values".

Tech notes for me:

And id from CustomEntityCustomField.find(id).enumerations is not being saved to a CustomValue .