User tests: Successful: Unsuccessful:
Pull Request for Issue #13137 .
add a check for group_id
Create a new field see #13137 (comment)
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_fields |
I would also put it into the XML and for safety, define the 0 as default value.
Ok I'll add the XML part
Labels |
Added:
?
|
xml deafult added
Should the different installer scripts not be coherent to each other. In MySQL we default the value to 0 https://github.com/joomla/joomla-cms/blob/staging/installation/sql/mysql/joomla.sql#L643.
The issue is that PostgreSQL works differently (more strict) than MySQL. The default is defined as 0 in PostgreSQL as well (see https://github.com/joomla/joomla-cms/blob/staging/installation/sql/postgresql/joomla.sql#L656) but we try to store an empty string there. MySQL just changes the invalid value to the default. PostgreSQL rightfully rejects it as an invalid value and throws an error.
At least we have this already fixed for j4 where mysql should be in strict mode ;)
I have tested this item
The error has gone. Thanks alikon!
Two things I noticed:
I have tested this item
Milestone |
Added: |
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-12-21 20:32:42 |
Closed_By | ⇒ | zero-24 |
Merged thanks!
We could also specify the option value as 0 in https://github.com/joomla/joomla-cms/blob/staging/administrator/components/com_fields/models/forms/field.xml#L31