Infos:
- Used Zammad version: 5.0
- Used Zammad installation type: (source, package, docker-compose, …) package
- Operating system: Ubuntu 18.04
- Browser + version: Firefox/Chrome newest on both
Expected behavior:
- creating an object and saving it to a variable ( object1 = ObjectManager::Attribute.create ) and setting all necessary paramaters ( object1.screens, object.data_option…) should generated a new Object after using object.save!
Actual behavior:
- using a variable throws an ActiveRecord::RecordInvalid error because object1.data_option = { :type => “text”, :maxlength => 120, :null => true } both :type and :maxlength are allegedly not set.
Steps to reproduce the behavior:
- object1 = ObjectManager::Attribute.create
- Set parameters (object1.data_options, object1.screens etc)
- using object1.save! throws the error mentioned before
If you don’t use a variable and just do ObjectManager::Attribute.create(data_options: …).save! it works just fine. Also if you duplicate an existing Object to a variable and save that variable it works fine.
Dunno if that is intended and I’m just not seeing it.
Also e.g if you create a User Object via console it doesn’t get added to the user table within the postgres Database. Even after Cache.clear und restarting zammad I still have to add the new User Objects manually as a new column in the user table.