Made default language parameter from setDefault equal to getDefault#4342
Made default language parameter from setDefault equal to getDefault#4342wilsonge merged 1 commit intojoomla:stagingfrom
Conversation
|
Please explain the reason behind this change as well as testing instructions. |
|
Hello, the only reason is, that the default language is always a star (*). So I thought, it's a good idea to set the star as default parameter. An example: I think, this two methods should be compatible. (Test the code before and after the patch) |
|
@test This is a correct fix. |
|
@test, I have tested the fix and work. Jacxx :) |
|
I can't imagine how setting the default home page item gets set outside of menu manager. But indeed it seems correct to use the same standardisation here as we have for the default value in com_menu's itself |
|
There are several reasons to set the default home page. For example, I had to write a plugin that made a menu item the default page when the user first opened the page via some landing page. Remember that this is not set permanently, but only sets the default page in JMenu for the duration of the pageload. |
|
Yep, I wrote a multi domain plugin (that's the reason why I found this "issue") where I set the default page depending on the domain. |
|
moving to RTC since we have successdful tests by @Hackwar and @jacxx Thanks. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4342. |
Made default language parameter from setDefault equal to getDefault
|
Merged - thanks! |
.