? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
10 Dec 2016

Pull Request for Issue #13137 .

Summary of Changes

add a check for group_id

Testing Instructions

Create a new field see #13137 (comment)

avatar alikon alikon - open - 10 Dec 2016
avatar alikon alikon - change - 10 Dec 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Dec 2016
Category Administration com_fields
avatar laoneo
laoneo - comment - 12 Dec 2016

I would also put it into the XML and for safety, define the 0 as default value.

avatar alikon
alikon - comment - 12 Dec 2016

Ok I'll add the XML part

avatar alikon alikon - change - 13 Dec 2016
Labels Added: ?
avatar alikon
alikon - comment - 13 Dec 2016

xml deafult added

avatar laoneo
laoneo - comment - 14 Dec 2016

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.

avatar Bakual
Bakual - comment - 14 Dec 2016

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.

avatar alikon
alikon - comment - 14 Dec 2016

At least we have this already fixed for j4 where mysql should be in strict mode ;)

avatar waader
waader - comment - 15 Dec 2016

I have tested this item successfully on 335026a

The error has gone. Thanks alikon!

Two things I noticed:

avatar waader waader - test_item - 15 Dec 2016 - Tested successfully
avatar ralain
ralain - comment - 21 Dec 2016

I have tested this item successfully on ae96b42


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13155.

avatar ralain ralain - test_item - 21 Dec 2016 - Tested successfully
avatar zero-24 zero-24 - change - 21 Dec 2016
Milestone Added:
avatar zero-24 zero-24 - change - 21 Dec 2016
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-12-21 20:32:42
Closed_By zero-24
avatar zero-24 zero-24 - close - 21 Dec 2016
avatar zero-24 zero-24 - merge - 21 Dec 2016
avatar zero-24 zero-24 - reference | c0036f2 - 21 Dec 16
avatar zero-24 zero-24 - merge - 21 Dec 2016
avatar zero-24 zero-24 - close - 21 Dec 2016
avatar zero-24
zero-24 - comment - 21 Dec 2016

Merged thanks!

avatar alikon alikon - head_ref_deleted - 21 Dec 2016
avatar cpfeifer cpfeifer - reference | fb3e6ba - 22 Dec 16

Add a Comment

Login with GitHub to post a comment