- Issue created by @justanothermark
- Merge request !70Issue 3516682 by justanothermark. Prevent setting default_information_tools to NULL string. → (Merged) created by justanothermark
The AiAgentForm
uses Yaml::dump(Yaml::parse(…))
to ensure the default value for default_information_tools
is correctly indented. However, when there is no value (e.g. on the Add Agent form) becomes the string "null" which is displayed in the text box and upon form submission is saved to the Yaml as:
default_information_tools: 'null'
which means the value is saved as the string "null"
View the Add Agent form at admin/structure/ai_agent/add
Only use Yaml::dump(Yaml::parse(…))
if there is a value, otherwise default to NULL.
Active
1.1
Code