Date field does not use field settings when installing #937
Labels
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#937
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Expected result
Correct install of component
Actual result
Error "Invalid default value for field"
System information (as much as possible)
Additional comments
I can edit the sql install line in the component settings but i really shouldn't have to do that for a simple date field (in my opinion).
When i copy the field it does create the correct sql query. After changing the settings in the new field it also does not update in the install query. It looks like only the initial saved settings (aka the first time you click save) are actually saved to the install query.
Okay so it does not use the default you set, did I understand you correctly.
You want it to use
'0000-00-00'
instead of the''
it is using now.That is correct. Moreover it does not matter what changes i make in the field defition since only the first save is used in the install.
There are only a few things that will cause a sql update of a column.
Basicly changed name and/or data type and data lenght will effect an sql update of a field, not a change of the default value.
The fact that it does not use the default you set is something I will look at, as for the not updating when you make a change, we will need more details on exactly what changes you are talking about.