? ? Pending

User tests: Successful: Unsuccessful:

avatar artur-stepien
artur-stepien
15 May 2018

Custom fields in com_contact currently doesn't work propertly. Choosing a category on which they should appear doesn't work cause fields plugin has no information about contact catid as not data is passed to form when contact form is displayed. Below is a test for the bug it fixes.

Summary of Changes

Adding catid to contact form data.

Testing Instructions

  • Create 2 contacts categories
  • Create 2 contacts, select them different categories and link them in menu (with enabled contact form)
  • Create 2 checkbox type fields (in Mail group so they will be displayed in contact form), One should have a selected category, the other should have All in category select
  • Go to front and look at both contact forms

Expected result

  • One contact should have 2 checkbox fields added
  • The other should have only one checkbox field added

Actual result

  • Both checkboxes display in both contacts

Documentation Changes Required

None

avatar artur-stepien artur-stepien - open - 15 May 2018
avatar artur-stepien artur-stepien - change - 15 May 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 May 2018
Category Front End com_contact
avatar artur-stepien artur-stepien - change - 15 May 2018
Labels Added: ?
avatar Quy
Quy - comment - 17 May 2018

Fixed in #20214 that will be in v3.8.8.

avatar Quy Quy - change - 17 May 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-05-17 03:38:31
Closed_By Quy
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2018
Closed_Date 2018-05-17 03:38:31 2018-05-17 03:38:32
Closed_By Quy joomla-cms-bot
avatar joomla-cms-bot
joomla-cms-bot - comment - 17 May 2018

Set to "closed" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20413

avatar joomla-cms-bot joomla-cms-bot - close - 17 May 2018
avatar artur-stepien
artur-stepien - comment - 17 May 2018

Worth to mention that #20214 is fixing the issue in a VIEW. That is a bad practice, especially that form data should be prepared in a model.

avatar Quy
Quy - comment - 17 May 2018

@laoneo Your comment please vs. #20214. Thanks.

avatar laoneo
laoneo - comment - 17 May 2018

If @artur-stepien finds a better way, then we are open for a new solution. For now this fixed the bug.

avatar mbabker
mbabker - comment - 17 May 2018

@artur-stepien comment about #20214 IS the better way. Data validation is a model responsibility, not the view. Unless you're Joomla and only explicitly supporting HTML views.

avatar Quy Quy - change - 17 May 2018
Status Closed New
Closed_Date 2018-05-17 03:38:32
Closed_By joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2018
Closed_Date 0000-00-00 00:00:00
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2018
Status New Pending
avatar joomla-cms-bot
joomla-cms-bot - comment - 17 May 2018

Set to "open" on behalf of @Quy by The JTracker Application at issues.joomla.org/joomla-cms/20413

avatar joomla-cms-bot joomla-cms-bot - reopen - 17 May 2018
avatar Quy
Quy - comment - 17 May 2018

Reopening


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

avatar Quy Quy - test_item - 17 May 2018 - Tested successfully
avatar Quy
Quy - comment - 17 May 2018

I have tested this item successfully on 1442986

Reverted #20214 and removed the code #20214 deleted.


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

avatar artur-stepien
artur-stepien - comment - 3 Jun 2018

I have tested this item successfully on 1442986


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

avatar artur-stepien artur-stepien - test_item - 3 Jun 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jun 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jun 2018

Ready to Commit after two successful tests.

avatar laoneo
laoneo - comment - 4 Jun 2018

The author of the pr should not test its own pr. Anyway the code in the view fixed a couple of different issues. We should make sure that we test all of them too.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 4 Jun 2018

Haven't looked Tester = Author, you're right @laoneo.
Status back on Pending

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Jun 2018
Status Ready to Commit Pending
avatar artur-stepien
artur-stepien - comment - 4 Jun 2018

Yeah, but as you can see no one cares about checking something that takes few minutes. And this issue is blocking changes required for GDPR. Not to mention that I wouldn't create PR for something that doesn't work. Testing that wouldn't take much longer then writing those comments ...

avatar Quy
Quy - comment - 10 Jun 2018

@degobbis @sandewt @ReLater Please test. Thanks.

avatar ReLater
ReLater - comment - 11 Jun 2018

I don't know which lines to delete before testing this pr.
Does this pr replace red AND green lines in https://github.com/joomla/joomla-cms/pull/20214/files ?

avatar Quy
Quy - comment - 11 Jun 2018

Keep the red lines and remove the green lines. Basically reverting #20214.

avatar ReLater ReLater - test_item - 11 Jun 2018 - Tested successfully
avatar ReLater
ReLater - comment - 11 Jun 2018

I have tested this item successfully on 1442986


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

avatar laoneo
laoneo - comment - 11 Jun 2018

Testers, please also test if we do not have a regression by one of the following old issues:

avatar ReLater
ReLater - comment - 11 Jun 2018

Testers, please also test if we do not have a regression by one of the following old issues:

Sorry, all I can say is that issue #20195 is fixed by this pr after I have reverted only the related old and already merged fix #20214 (like @Quy advised above).

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Jun 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 16 Jun 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 18 Jun 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-06-18 02:56:45
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 18 Jun 2018
avatar mbabker mbabker - merge - 18 Jun 2018

Add a Comment

Login with GitHub to post a comment