Best Answer SmetDenis , 03 March 2015 - 09:18
Я не уверен, что все правильно.
Решение примерно следующее
В файле найдите этот кусок кода
media\zoo\applications\jbuniversal\framework\elements\core\category.php
И замените
// add category to item relations if (!empty($relatedCategories)) { // make first category found primary category if (!$this->_item->getPrimaryCategoryId()) { $this->_item->getParams()->set('config.primary_category', $relatedCategories[0]); } $category = $this->_item->getPrimaryCategory(); $parList = array(); $parent = $category->getParent(); while ($parent) { $parList[] = $parent->id; $parent = $parent->getParent(); } $relatedCategories = array_unique(array_merge($relatedCategories, $parList)); $this->app->category->saveCategoryItemRelations($this->_item, $relatedCategories); }Go to the full post
