Skip to content

Commit

Permalink
get new catid and save with article
Browse files Browse the repository at this point in the history
  • Loading branch information
pe7er committed Dec 8, 2015
1 parent a94e752 commit c2b4133
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions administrator/components/com_content/models/article.php
Expand Up @@ -503,8 +503,8 @@ public function save($data)

$categoryModel->save($catData);

//todo retrieve id of new category
//$data['catid'] = $this->getState($this->getName() . '.id');
// Get the category id of the new category we have just created.
$data['catid'] = $categoryModel->getState("category.id");
}

if (isset($data['urls']) && is_array($data['urls']))
Expand Down

0 comments on commit c2b4133

Please sign in to comment.