-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[5.1] Correct message type for Redirect plugin state #43402
Conversation
This does not solve #43298
|
It is "notice", as it was before in 5.0 and in j4. |
tbh, this messages is useless, why do we have them in first place? |
Please READ the report more carefully. The messages are NOT useless. I realise that there is a lot of variants but currently AND with this PR the following message is completely wrong!!! When the plugin is enabled any redirects that have been created in the component will take effect. It says I am wondering now if you did not realise the complete use of the plugin and component when you rewrote this part of the code as it makes no sense. The current code as changed in #42447 is simply wrong. You never check if the plugin is enabled or disabled. You only check if the plugin exists |
It is (almsot) 1:1 copy of what was before: joomla-cms/administrator/components/com_redirect/src/Controller/DisplayController.php Lines 54 to 77 in 301bdf2
New:
Maybe something wrong with redirectPluginId or with that if() condition, who knows. |
Its not the same - this is where the mistake is ORIG joomla-cms/administrator/components/com_redirect/src/Controller/DisplayController.php Lines 54 to 55 in 301bdf2
NEW
redirectPluginId gets the ID of the plugin |
It is there only when the plugin is disabled joomla-cms/administrator/components/com_redirect/src/View/Links/HtmlView.php Lines 139 to 141 in a1cdbc1
|
I give up - I am clearly unable to explain what should be very obvious. Your changed code in #42447 produces the wrong message and this PR makes no changes to correct that. Instead of saying
Your code says
|
Don't give up |
I dont know how else to explain the obvious |
Should work now. |
But messages are good? :) |
I have tested this item ✅ successfully on 3e9f660 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43402. |
1 similar comment
I have tested this item ✅ successfully on 3e9f660 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43402. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/43402. |
Thanks! |
Pull Request for Issue #43298 .
Summary of Changes
Use "notice" instead of "warning" for informative messages.
Testing Instructions
Please follow #43298
Actual result BEFORE applying this Pull Request
Yellow message
Expected result AFTER applying this Pull Request
Blue message
Link to documentations
Please select:
Reference: