Skip to content

Commit

Permalink
Chec if featured up and down are set in data (#27008)
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 authored and infograf768 committed Nov 7, 2019
1 parent 8c24665 commit 8635691
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion administrator/components/com_content/Model/ArticleModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,12 @@ public function save($data)
{
if (isset($data['featured']))
{
$this->featured($this->getState($this->getName() . '.id'), $data['featured'], $data['featured_up'], $data['featured_down']);
$this->featured(
$this->getState($this->getName() . '.id'),
$data['featured'],
$data['featured_up'] ?? null,
$data['featured_down'] ?? null
);
}

// Let's check if we have workflow association (perhaps something went wrong before)
Expand Down

0 comments on commit 8635691

Please sign in to comment.