User tests: Successful: Unsuccessful:
If you login in the administration with a user who not have the Execute Transition permission and enter to the articles view, a warning error show up:
Warning: Undefined array key "value" in ..\joomla-cms\administrator\components\com_content\src\View\Articles\HtmlView.php on line 190
Warning: Undefined array key "value" in ..\joomla-cms\administrator\components\com_content\src\View\Articles\HtmlView.php on line 192
Go to the com_content options and Enable Workflow
Create a user with the follow permissions and login with him, in the administration area:
Go back to the articles view
A list of errors show up (one for each transition button the view render)
Note: The change in the HtmlView.php
file is for fix the previous explained error. But when that happen another related error show up:
Warning: Undefined array key "from_stage_id" in ..\joomla-cms\administrator\components\com_content\src\Helper\ContentHelper.php on line 73
This is expected to happen, because the tmpl/default.php file do not check also if the user can execute a transition. So a little adjust is made there too.
Note: Therefor, the Admin Featured Articles View have the same error. I will glad make the PR for that one after this one get reviewed.:
Category | ⇒ | Administration com_content |
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
I have tested this item ✅ successfully on c8f486f
This pull request has been automatically rebased to 4.4-dev.
I have tested this item ✅ successfully on c8f486f
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
?
bug
PR-4.4-dev
Removed: ? |
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-15 17:42:15 |
Closed_By | ⇒ | MacJoom | |
Labels |
Added:
?
Removed: ? |
This pull request has been automatically rebased to 4.3-dev.