Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[staging] Contact Banned parameters work only from component Options #23569

Closed
wants to merge 1 commit into from

Conversation

infograf768
Copy link
Member

@infograf768 infograf768 commented Jan 16, 2019

Pull Request for Issue #23546

Summary of Changes

Concerns Banned Email, Banned Subject, Banned Text parameter fields.

The validation of these, before this patch, is only done depending on the parameters defined in the component Options Form tab.
Whatever has been entered in the Contact menu item or in the Contact itself are ignored.

Testing Instructions

Tests have to be done when one sends mail to a contact in frontend.

The priorities for these parameters depend if the contact is displayed from a single contact menu item or not.

Set the parameters in the various places below and test priorities. Creating the params and taking them off between each test.

Case1: From a single contact menu item

Priority1: menu item parameters
Priority2: Contact parameters
Priority3: Component parameters

Case2: No single contact menu item
For example for another type of contacts menu item or from no menu item at all when clicking on the author link in an article.

Priority1: Contact parameters
Priority2: Component parameters

Test is successful when one gets a message of the type depending on the field where the banned item is used.
Error:
Invalid field: Email
Invalid field: Subject
Invalid field: Message

Before patch

Only the Component parameters are used.

After patch

Parameters used depend on the priorities.

@ChristineWk
Copy link

I have tested this item ✅ successfully on 80bfdde

Thank you @infograf768 - will inform forum accordingly


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

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 80bfdde


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

@Quy
Copy link
Contributor

Quy commented Jan 16, 2019

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jan 16, 2019
@infograf768
Copy link
Member Author

infograf768 commented Jan 17, 2019

To tell the truth, as these fields (as present for a contact or single contact menu item) never worked, even in 2.5 where we do have exactly the same code, another solution is to get rid of them and just keep the component Options ones.
It looks like this has not created issues for years and it did only when someone tried to use them.

@joomla/cms-maintainers @ChristineWk @viocassel
What do you think?

EDIT: This means deleting them in 6 .xml, 12 .sql, and some .csv and one .xml test files.

@Hackwar
Copy link
Member

Hackwar commented Jan 17, 2019

+1 for deleting

@wilsonge
Copy link
Contributor

Delete them

@ChristineWk
Copy link

@infograf768 Personally, I agree with you, but I do not know what other users or the thread creator means about it. Anyway Thanks for your investigation!

@infograf768
Copy link
Member Author

OK, will work on this and when ready will close this PR.

@infograf768
Copy link
Member Author

Please see #23585
There is one .csv which needs love and care.
Closing this PR.

@joomla-cms-bot joomla-cms-bot added PR-staging and removed RTC This Pull Request is Ready To Commit labels Jan 18, 2019
@infograf768 infograf768 deleted the contact_banned branch August 30, 2019 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants