- Issue created by @justanothermark
- Merge request !70Issue 3516682 by justanothermark. Prevent setting default_information_tools to NULL string. → (Merged) created by justanothermark
Automatically closed - issue fixed for 2 weeks with no activity.
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
Automatically closed - issue fixed for 2 weeks with no activity.