Skip to content

Commit 8665c4d

Browse files
authored
[5.3] Unpublish/Run transition article when saving as copy (#45014)
1 parent cc3b511 commit 8665c4d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

administrator/components/com_content/src/Model/ArticleModel.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,12 @@ public function save($data)
762762
} elseif ($data['alias'] == $origTable->alias) {
763763
$data['alias'] = '';
764764
}
765+
766+
if (!$this->workflowEnabled) {
767+
$data['state'] = 0;
768+
} else {
769+
$data['transition'] = '';
770+
}
765771
}
766772

767773
// Automatic handling of alias for empty fields

0 commit comments

Comments
 (0)