Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions layouts/joomla/edit/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,10 @@
'version_note',
);

if ($displayData->get('item')->id !== null)
if (isset($displayData->get('item')->id) && ($displayData->get('item')->id !== null))
{
array_unshift($fields, 'transition');
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason to kill that empty line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, simply lazy 😄

$hiddenFields = $displayData->get('hidden_fields') ?: array();

if (!$saveHistory)
Expand Down