Project

General

Profile

Actions

Bug #33093

closed

'Missing "affected items" in $parameters array' on publish (4.6)

Added by Jari no-lastname-given almost 13 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2012-01-10
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

missing_affected_items_msg_screen.gif (20.3 KB) missing_affected_items_msg_screen.gif Jari no-lastname-given, 2012-01-10 15:29
Actions

Also available in: Atom PDF