Bug #33093
closed'Missing "affected items" in $parameters array' on publish (4.6)
100%
Description
In the latest stable typo3-version (4.6.3) the publish button in workspace preview does not work.
Error message: Missing "affected items" in $parameters array
Screenshot attached.
I've fixed this problem by modifying one condition in "typo3_src/typo3/sysext/workspaces/Classes/ExtDirect/ActionHandler.php" line 324.
From
if (!is_array($parameters->affects) || count($parameters->affects) 0) {
To
if (!is_object($parameters->affects) || count($parameters->affects) 0) {
The check is_array seems wrong as $parameters->affects is an object.
I didnt dig into this further but seems like $parameters->affects implements the interface "Interator" or something similar. Maybe a check like "$parameters->affects instanceof Iterator" would be better.
Files
Updated by Gerrit Code Review almost 13 years ago
- Status changed from New to Under Review
Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7809
Updated by Gerrit Code Review almost 13 years ago
Patch set 1 for branch 4.6 has been pushed to the review server.
It is available at http://review.typo3.org/7810
Updated by Tolleiv Nietsch almost 13 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset commit:bf0ca41676f483a8bdfe55077aa79e0018077b61.
Updated by Michael Stucki almost 11 years ago
- Category changed from Bugs to Workspaces
Updated by Michael Stucki almost 11 years ago
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
- Target version deleted (
4.6)