-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Multilang: correcting Published Request Form Menu Item
url in Privacy Dashboard
#22909
Multilang: correcting Published Request Form Menu Item
url in Privacy Dashboard
#22909
Conversation
@@ -92,28 +87,67 @@ public function getRequestFormPublished() | |||
|
|||
$db = $this->getDbo(); | |||
$query = $db->getQuery(true) | |||
->select($db->quoteName('id')) | |||
->select($db->quoteName('id') . ', ' . $db->quoteName('published') . ', ' . $db->quoteName('language')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->select($db->quoteName('id') . ', ' . $db->quoteName('published') . ', ' . $db->quoteName('language')) | |
->select($db->quoteName(array('id', 'published', 'language'))) |
I have tested this item ✅ successfully on 7d2fb99 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22909. |
I have tested this item ✅ successfully on 7d2fb99 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22909. |
RTC. Thanks for testing. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/22909. |
No need to ask for new tests. Works fine here. |
Pull Request for Issue #22869 (comment)
Summary of Changes
Correct the link (language included) and the
Published/Unpublished
status of thePublished Request Form Menu Item
url, making it totally independent of the site default language when we do have such menu items.Also when we have no menu item, correcting the
Itemid
to use the default site language home page one instead of the one set to ALL languages.Testing Instructions
See #22869 (comment)
Test and test2.
SEF off to see the non-sef url.
After patch
When we have one or multiple menu items:
The url obtained will anyway be the one of the lowest id in case there are multiple menu items of this kind (no change there as we have only one line for an url in the dashboard), but at least:
The
Itemid
and the language will be the correct ones in case there are multiple menu items, this independantly from the site default language.Example when there is a fr-FR such menu item
Also, when there is NO menu item, the Itemid used will not be anymore the
Itemid
of the default home page set to ALL languages, but the one of the default home page for the default site language. That is important concerning modules assignment.Example when French is default language and the French home page Itemid is 105 while the home set to ALL is 101.
Before patch
After patch
@mbabker