TYPO3 Flow Base DistributionPackagesApplications

Bug #50557

workflow->removeTask does not work any more and is destroying the array structure

Added by Martin Ficzel about 2 years ago. Updated almost 2 years ago.

Status:Resolved Start date:2013-07-30
Priority:Must have Due date:
Assigned To:- % Done:

100%

Category:-
Target version:-

Description

Since commit 2b7d957eaf77acddef4028cd965822545b2853b0 the removeTask methods does destroy the structure of its internal taks-array. The reason is a misordering in the task-array addressing in the mentioned commit.

The line 61 should be altered like this:

+ $this->tasks['stage'][$applicationName][$stageName][$step] = array_filter($tasks, function($task) use ($removeTask) { return $task !== $removeTask; });
- $this->tasks['stage'][$applicationName][$step][$stageName] = array_filter($tasks, function($task) use ($removeTask) { return $task !== $removeTask; });

Associated revisions

Revision 54d95846
Added by Martin Ficzel almost 2 years ago

[BUGFIX] Fixed the workflow->removeTask method

After commit 2b7d957eaf77acddef4028cd965822545b2853b0 the method
destroyed the internal tasks-array instead of doing anything.

Change-Id: Ieca1c0f96a56f0954e5af13966d9f39a4ac88b1d
Fixes: #50557

History

#1 Updated by Gerrit Code Review about 2 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22698

#2 Updated by Gerrit Code Review almost 2 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22698

#3 Updated by Gerrit Code Review almost 2 years ago

Patch set 3 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/22698

#4 Updated by Martin Ficzel almost 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF