mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Merge pull request #2032 from phptek/bug/revert-9741d1
BUGFIX: Removed regression introduced in 9741d1.
This commit is contained in:
commit
a29c51d2db
@ -82,14 +82,10 @@ abstract class CMSBatchAction extends Object {
|
|||||||
|
|
||||||
foreach($objs as $obj) {
|
foreach($objs as $obj) {
|
||||||
|
|
||||||
// Don't run doPublish() if $obj isn't in a fit state be published
|
|
||||||
// @todo Implementation logic _is_ better in CMSBatchAction_Publish#run() but at least objects not matching, still get the batchaction run over them
|
|
||||||
if ($helperMethod == 'isPublish' && !$obj->getIsDeletedFromStage()) {
|
|
||||||
// Perform the action
|
// Perform the action
|
||||||
if (!call_user_func_array(array($obj, $helperMethod), $arguments)) {
|
if (!call_user_func_array(array($obj, $helperMethod), $arguments)) {
|
||||||
$status['error'][$obj->ID] = '';
|
$status['error'][$obj->ID] = '';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Now make sure the tree title is appropriately updated
|
// Now make sure the tree title is appropriately updated
|
||||||
$publishedRecord = DataObject::get_by_id($this->managedClass, $obj->ID);
|
$publishedRecord = DataObject::get_by_id($this->managedClass, $obj->ID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user