Skip to content

[5.0] Fix wrong language string constant used in database query of privacyconsent task scheduler plugin#41597

Merged
HLeithner merged 2 commits intojoomla:5.0-devfrom
richard67:5.0-dev-fix-privacy-consent-task-plugin
Sep 5, 2023
Merged

[5.0] Fix wrong language string constant used in database query of privacyconsent task scheduler plugin#41597
HLeithner merged 2 commits intojoomla:5.0-devfrom
richard67:5.0-dev-fix-privacy-consent-task-plugin

Conversation

@richard67
Copy link
Member

Pull Request for #40553 (comment) .

Summary of Changes

The new task scheduler plugin "plg_task_privacyconsent" added with PR #40553 queries the database to check for privacy consents for which a reminder should be sent or which are expired.

It uses an own language string key PLG_TASK_PRIVACYCONSENT_SUBJECT for the subject column of the #__privacy_consents table in the WHERE condition.

But the privacy consent system plugin which is still handling the non-cyclic functionality inserts the records with language string key PLG_SYSTEM_PRIVACYCONSENT_SUBJECT.

See also #40553 (comment) .

This is wrong.

The scheduler task should query for records with the PLG_SYSTEM_PRIVACYCONSENT_SUBJECT.

The language strings are not translated, only they keys are used, and string PLG_TASK_PRIVACYCONSENT_SUBJECT is not used anywhere else.

Testing Instructions

Code review.

Actual result BEFORE applying this Pull Request

Wrong language string key used in query.

Expected result AFTER applying this Pull Request

Right language string key used, and obsolete wrong key removed from the language file of the new scheduler task plugin.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-5.0-dev labels Sep 5, 2023
@richard67 richard67 mentioned this pull request Sep 5, 2023
4 tasks
@richard67 richard67 changed the title 5.0 dev fix privacy consent task plugin [5.0] Fix wrong language string constant used in database query of privacyconsent task scheduler plugin Sep 5, 2023
@richard67 richard67 added the Small A PR which only has a small change label Sep 5, 2023
@HLeithner HLeithner merged commit 107a0e3 into joomla:5.0-dev Sep 5, 2023
@HLeithner
Copy link
Member

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators Small A PR which only has a small change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants