You need to sign in or sign up before continuing.
Content Typ bei Erstellung eines Content Items sollte required sein
Ich hatte ein neues Content Item erstellt. Und dabei vergessen einen Content Typ anzugeben. Laut UI ist der Content Typ optional.
Dadurch konnte ich auf Speichern klicken, keine Validierung hat mich daran gehindert. Es wurde aber eine Exception geworfen und das Content Item auch nicht angelegt.
F, [2021-07-30T14:30:27.488959 #1018] FATAL -- : [1e7bd8d9-87f9-47ed-9374-a5a13915604a]
[1e7bd8d9-87f9-47ed-9374-a5a13915604a] NoMethodError (undefined method `to_sym' for nil:NilClass):
[1e7bd8d9-87f9-47ed-9374-a5a13915604a]
[1e7bd8d9-87f9-47ed-9374-a5a13915604a] app/models/concerns/content_type_support.rb:18:in `content_type_class'
[1e7bd8d9-87f9-47ed-9374-a5a13915604a] app/models/content_item_definition.rb:19:in `default_value='
Edited by Benjamin Bock