mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
05a54adced
Currently, column_names on production systems are either 1. YAML-serialized Arrays of column names (duh) 2. An empty string '' 3. nil The two latter are invalid with Rails 5 and cause the following error: ``` NoMethodError (undefined method `map' for "":String): app/controllers/api/experimental/concerns/v3_naming.rb:70:in `json_query_as_v3' app/controllers/api/experimental/work_packages_controller.rb:85:in `query_as_json' app/controllers/api/experimental/work_packages_controller.rb:51:in `index' app/middleware/reset_current_user.rb:47:in `call' ``` This commit forces Array serialization and fixes previous queries with the empty values.