Project

General

Profile

Actions

Bug #33093

closed

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

Added by Jari no-lastname-given over 12 years ago. Updated over 5 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 #1

Updated by Gerrit Code Review over 12 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

Actions #2

Updated by Gerrit Code Review over 12 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

Actions #3

Updated by Tolleiv Nietsch over 12 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:bf0ca41676f483a8bdfe55077aa79e0018077b61.

Actions #4

Updated by Michael Stucki over 10 years ago

  • Category changed from Bugs to Workspaces
Actions #5

Updated by Michael Stucki over 10 years ago

  • Project changed from 624 to TYPO3 Core
  • Category changed from Workspaces to Workspaces
  • Target version deleted (4.6)
Actions #6

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF