kimai / Paid-plugins

Support for paid Kimai plugins: Discussions and feature requests
https://www.kimai.org/store/
11 stars 1 forks source link

choice-list with multi-select #45

Open kevinpapst opened 4 years ago

kevinpapst commented 4 years ago

Customer wish: extend choice-list so users can choose multi values.

toxiclung commented 4 years ago

thank you so much for trying this. it would be very useful. may i also suggest some kind of admin page to manage the choice-list. in our case, i had to alter the mysql table to allow more than 256 chars because of the limitation and because our list is quite large (i know i probably shouldnt have done this but i had to try to make it work)

kevinpapst commented 4 years ago

which table and field are you referring to? the "value" field from this bundle?

toxiclung commented 4 years ago

this was what i did to allow more lists (default to varchar 255): ALTER TABLE kimai2_meta_field_rules CHANGE value value VARCHAR(8096);

kevinpapst commented 4 years ago

Oh .... well that must be a really long list ^^ If more people need a longer value, I can increase the size, but likely not to to 8096. Please keep in mind that in future updates you need to check the newest Migrations in this directory to make sure that this field was not changed. Otherwise you might loose your changes.

toxiclung commented 4 years ago

yes its a long one because we need to put the code and description for every entry :-D thanks for reminding about Migrations.