? Release Blocker ? bug ? Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
19 Feb 2022

Summary of Changes

After PR #36432 $user->->getAuthorisedViewLevels() now return Associative array,
that may lead to unexpected bugs when code relies on non Associative array.
This PR make sure the array is non associative

Testing Instructions

In index.php of template add:
dump(Joomla\Utilities\ArrayHelper::isAssociative($app->getIdentity()->getAuthorisedViewLevels()));

Actual result BEFORE applying this Pull Request

Result is true.

Expected result AFTER applying this Pull Request

Result is false.

Documentation Changes Required

none

avatar Fedik Fedik - open - 19 Feb 2022
avatar Fedik Fedik - change - 19 Feb 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Feb 2022
Category Libraries
avatar bembelimen bembelimen - change - 20 Feb 2022
Labels Added: ? bug
avatar toivo toivo - test_item - 22 Feb 2022 - Tested successfully
avatar toivo
toivo - comment - 22 Feb 2022

I have tested this item successfully on c7d86af

Tested successfully in 4.1.1-dev of 22 February in Wampserver 3.2.7 using PHP 8.0.15


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37096.

avatar wilsonge
wilsonge - comment - 22 Feb 2022

@bembelimen adding this as a release blocker as it's a API B/C break

avatar richard67
richard67 - comment - 3 Mar 2022

I have tested this item successfully on c7d86af


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37096.

avatar richard67 richard67 - test_item - 3 Mar 2022 - Tested successfully
avatar richard67 richard67 - change - 3 Mar 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 3 Mar 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37096.

avatar rdeutz rdeutz - change - 6 Mar 2022
Labels Added: ? Release Blocker
avatar laoneo laoneo - change - 7 Mar 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 7 Mar 2022

@bembelimen adding this as a release blocker as it's a API B/C break

Why a BC break?

avatar Fedik
Fedik - comment - 7 Mar 2022

Why a BC break?

Because return value is changed

avatar bembelimen bembelimen - close - 7 Mar 2022
avatar bembelimen bembelimen - merge - 7 Mar 2022
avatar bembelimen bembelimen - change - 7 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-07 12:31:35
Closed_By bembelimen
avatar bembelimen
bembelimen - comment - 7 Mar 2022

Good find, thx.

Add a Comment

Login with GitHub to post a comment