Skip to content

Commit 1b3acb7

Browse files
author
Andy Caiger
committed
Enable deletion of workflow by deleting date (Ablaufdatum) #13391
1 parent 25b1b66 commit 1b3acb7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

content/xrowworkflowhandler.php

+5
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,11 @@ function fetchInput( $http, &$module, &$class, $object, &$version, $contentObjec
228228
{
229229
$obj = new xrowworkflow( $row );
230230
$obj->store();
231+
} else {
232+
$obj = new xrowworkflow($row);
233+
$obj->remove();
234+
eZDebug::writeError('Removed workflow for contentobject_id = ' . $row['contentobject_id'] . ' from table', __METHOD__);
235+
eZDebug::writeError( 'no workflow saved', __METHOD__ );
231236
}
232237
$http->removeSessionVariable( 'BrowseParameters' );
233238
}

0 commit comments

Comments
 (0)