No Code Attached Yet bug
avatar kauffeld
kauffeld
18 Apr 2024

I am using German Language in Joomla so some English term may not be correct.

Steps to reproduce the issue

In Joomla administration dashboard go to System - Plugins
Select System - Redirect
Deactivate Collect URLs
Save and close

Go to Redirects

Expected result

A warning message with Id 'COM_REDIRECT_COLLECT_MODAL_URLS_DISABLED' should occur.

Actual result

An error message with Id 'COM_REDIRECT_PLUGIN_MODAL_DISABLED' occurs.

System information (as much as possible)

Error occurs with Joomla 5.1.0. With 5.0.3 the message was ok.

Additional comments

When collection URLs the message is ok.

avatar kauffeld kauffeld - open - 18 Apr 2024
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Apr 2024
avatar brianteeman
brianteeman - comment - 29 Apr 2024

This is a bug, Looking into it now

avatar brianteeman
brianteeman - comment - 29 Apr 2024

This is how it should be - note that the message is coompletely wrong in test 3 and in test 2 it should be info not warning

This needs to bec checked both with existing redirects and in the emptystate view

These errors come from #42447 - sorry @Fedik I am not following the logic of your new code or I would have done a PR

Test 1 - Redirect Plugin Disabled

Current Message

The Redirect System Plugin is disabled. It needs to be enabled for this component to work.
image-20240429163644999

Correct Message

The Redirect System Plugin is disabled. It needs to be enabled for this component to work.
image-20240429161841596

Test 2 - Redirect Plugin Enabled Collect Url Enabled

Current Message

The Redirect Plugin is enabled. The option 'Collect URLs' is enabled.
image-20240429163740230

Correct Message

The Redirect Plugin is enabled. The option 'Collect URLs' is enabled.
image-20240429161944371

Test 3 - Redirect Plugin Enabled Collect Url Disabled

Current Message

The Redirect System Plugin is disabled. It needs to be enabled for this component to work.
image-20240429163912683

Correct Message

The Redirect Plugin is enabled. The 'Collect URLs' option in the Redirect System Plugin is disabled. Error page URLs will not be collected by this component.
image-20240429161914785

avatar kauffeld
kauffeld - comment - 29 Apr 2024

Ok, that's what I expect and that's how it was before Joomla 5.1.0

avatar Fedik Fedik - change - 29 Apr 2024
Labels Added: bug
avatar Fedik Fedik - labeled - 29 Apr 2024
avatar Fedik
Fedik - comment - 29 Apr 2024

I have moved the message from controller to the layout.
Not sure why I have change "notice" to "warning", maybe mixed up something.
I will make PR later.

avatar brianteeman
brianteeman - comment - 29 Apr 2024

its your logic for determining if the plugin is enabled or not that I dont understand

avatar Fedik
Fedik - comment - 29 Apr 2024

Yes, I mean, it should stay the same as before.
I not remember why I did change message type.

avatar brianteeman
brianteeman - comment - 29 Apr 2024

I dont think you realised you had. I think the logic you ghave for testing what is enabled etc is wrong and thats what confused you. It sure as hell confused me.

avatar Fedik Fedik - change - 30 Apr 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-04-30 07:50:45
Closed_By Fedik
avatar Fedik Fedik - close - 30 Apr 2024
avatar Fedik
Fedik - comment - 30 Apr 2024

Please test #43402

Add a Comment

Login with GitHub to post a comment