marcelbonnet / redmine_tables

Adds Tables with its own workflows to Redmine. Use it with/without Projects and Tasks.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with Custom Fields of Type: Key/Value List

nayefeb opened this issue · comments

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:

  • I created a new table called (test table)
    image
  • In this table, I've created a Custom Filed of type Key/Value List. Multiple Values option is checked.
    image
    image
  • Inside this field, I defined the following values:
    image
  • The issue is, when I specify any value in this custom field, whether it was multi value or single value, it doesn't show in the list:
    image

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

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 .