Fixed issue #1653: Default value not set for attributes of type input, select, tree_select, richtext, textarea, checkbox.

This commit is contained in:
Thorsten Eckel 2019-08-16 11:14:29 +02:00
parent f165cbfbc2
commit 93c5708ba8

View file

@ -684,6 +684,7 @@ to send no browser reload event, pass false
attribute.name,
data_type,
limit: attribute.data_option[:maxlength],
default: attribute.data_option[:default],
null: true
)
elsif attribute.data_type.match?(/^integer|user_autocompletion|datetime|date$/)
@ -723,6 +724,7 @@ to send no browser reload event, pass false
attribute.name,
data_type,
limit: attribute.data_option[:maxlength],
default: attribute.data_option[:default],
null: true
)
elsif attribute.data_type.match?(/^integer|user_autocompletion$/)