? ? Pending

User tests: Successful: Unsuccessful:

avatar wilsonge
wilsonge
17 Feb 2017

Pull Request for Issue #14090 .

Summary of Changes

Fixes the contact creation plugin

Testing Instructions

Test contact creation now works (note you may have to apply #13956 to fix a fields related problem on saving a user)

Expected result

Contact now saves

@alikon or @csthomas - Should some of these fields (like sortname1) be optional default null fields instead of some of this??

Documentation Changes Required

N/A

avatar wilsonge wilsonge - open - 17 Feb 2017
avatar wilsonge wilsonge - change - 17 Feb 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2017
Category Administration com_contact Front End Plugins
avatar csthomas
csthomas - comment - 17 Feb 2017

I can not find any source which can explain that.
If this field is optional then sql table should have "DEFAULT ''" but for sortname1 I do not see it.
In general there is a mess with defaults.
For me your changes are OK.

avatar wilsonge
wilsonge - comment - 17 Feb 2017

Do you think those fields should be optional? Even in the installation defaults we don't have values for all except the first contact :(

avatar csthomas
csthomas - comment - 17 Feb 2017

I do not know.

You can take a look to PR #7680. testing.php

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Feb 2017

I have tested this item ? unsuccessfully on 3f25eda


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 17 Feb 2017 - Tested unsuccessfully
avatar joomdonation
joomdonation - comment - 17 Feb 2017

@franz-wohlkoenig You need to apply PR #13956 too before testing. That issue you are having now was sorted by that PR

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Feb 2017

@joomdonation #13956 is merged, not available on Patchtester. Will install nightly-builds?

avatar joomdonation
joomdonation - comment - 17 Feb 2017

Install nightly-builds? might help. Or you can just replace the file plugins/system/fields/fields.php on your Joomla 4.0 installation with the content of this file https://github.com/joomla/joomla-cms/blob/4.0-dev/plugins/system/fields/fields.php

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Feb 2017

@joomdonation installed nightly-builds and later content of file fields.php, got after Save of existing User:
bildschirmfoto 2017-02-17 um 08 57 27

avatar joomdonation
joomdonation - comment - 17 Feb 2017

The error you are having with your last test is fixed with my other PR #14088 (you tested it before)

So you need to apply that PR, too, or disable User Profile plugin before testing again

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Feb 2017

I have tested this item successfully on 3f25eda


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 17 Feb 2017 - Tested successfully
avatar joomdonation
joomdonation - comment - 17 Feb 2017

I have tested this item successfully on 3f25eda

Since the fields sortname1, sortname2, sortname3 are not required, I think it would be better if we allow null or set default value like how we do with other fields address, suburb, state... instead of having to write code to set empty value for the fields like this


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

avatar joomdonation joomdonation - test_item - 17 Feb 2017 - Tested successfully
avatar zero-24 zero-24 - change - 17 Feb 2017
Milestone Added:
Status Pending Ready to Commit
Labels Added: ? ?
avatar wilsonge
wilsonge - comment - 17 Feb 2017

NOTE TO MAINTAINERS: PLEASE HOLD ON MERGING THIS UNTIL WE REVIEW #14113 which might mean this PR can/should be tweaked a bit :)

avatar csthomas
csthomas - comment - 17 Feb 2017

About related my PR. I could not add default value to meta... columns because they use TEXT type on mysql.
For sortname1,2,3 I have added default value.

avatar zero-24 zero-24 - change - 17 Feb 2017
Status Ready to Commit Needs Review
Labels Removed: ?
avatar joomdonation
joomdonation - comment - 17 Feb 2017

Note after applying #14113, the changes in Contact Creator Plugin in this PR is not needed anymore, only changes to ContactTableContact class is needed

avatar wilsonge
wilsonge - comment - 19 Feb 2017

? Can I get an extra test here now please

avatar csthomas csthomas - test_item - 19 Feb 2017 - Tested successfully
avatar csthomas
csthomas - comment - 19 Feb 2017

I have tested this item successfully on 1a8e5f6


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

avatar csthomas
csthomas - comment - 19 Feb 2017

I have tested it on j37 with enabled sql_mode from Joomla 4.0

avatar dgt41 dgt41 - test_item - 19 Feb 2017 - Tested successfully
avatar dgt41
dgt41 - comment - 19 Feb 2017

I have tested this item successfully on 1a8e5f6


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

avatar dgt41 dgt41 - change - 19 Feb 2017
Status Needs Review Ready to Commit
avatar dgt41
dgt41 - comment - 19 Feb 2017

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14112.
avatar wilsonge wilsonge - change - 19 Feb 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-19 22:41:35
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 19 Feb 2017
avatar wilsonge wilsonge - merge - 19 Feb 2017

Add a Comment

Login with GitHub to post a comment