Skip to content

Commit ecbc576

Browse files
chmstrdeutz
authored andcommitted
Fix errors in renaming state to stage for workflow (#21563)
* Fix errors in renaming state to stage for workflow * Fix table
1 parent e986af5 commit ecbc576

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

administrator/components/com_admin/sql/updates/mysql/4.0.0-2018-05-15.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ INSERT INTO `#__workflow_transitions` (`id`, `asset_id`, `published`, `ordering`
114114
-- Creating extension entry
115115
--
116116

117-
INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `checked_out`, `checked_out_time`, `ordering`, `stage`, `namespace`) VALUES
117+
INSERT INTO `#__extensions` (`extension_id`, `package_id`, `name`, `type`, `element`, `folder`, `client_id`, `enabled`, `access`, `protected`, `manifest_cache`, `params`, `checked_out`, `checked_out_time`, `ordering`, `state`, `namespace`) VALUES
118118
(35, 0, 'com_workflow', 'component', 'com_workflow', '', 1, 1, 0, 0, '', '{}', 0, '0000-00-00 00:00:00', 0, 0, 'Joomla\\Component\\Workflow');
119119

120120
--

administrator/components/com_workflow/Table/StageTable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function delete($pk = null)
7878
{
7979
$query = $db->getQuery(true)
8080
->delete($db->quoteName('#__workflow_transitions'))
81-
->where($db->quoteName('to_') . ' = ' . (int) $pk, 'OR')
81+
->where($db->quoteName('to_stage_id') . ' = ' . (int) $pk, 'OR')
8282
->where($db->quoteName('from_stage_id') . ' = ' . (int) $pk);
8383

8484
$db->setQuery($query)->execute();

0 commit comments

Comments
 (0)