fix breadcrumb for content/folder part

This commit is contained in:
Manuel Raynaud
2013-09-30 15:13:04 +02:00
parent d7e9752d63
commit f25922c60a
8 changed files with 18 additions and 10 deletions

View File

@@ -242,7 +242,8 @@ class ContentController extends AbstractCrudController
{
return array(
'content_id' => $this->getRequest()->get('content_id', 0),
'current_tab' => $this->getRequest()->get('current_tab', 'general')
'current_tab' => $this->getRequest()->get('current_tab', 'general'),
'folder_id' => $this->getFolderId(),
);
}

View File

@@ -43,6 +43,7 @@ use Thelia\Model\CategoryQuery;
use Thelia\Core\Event\Product\ProductAddAccessoryEvent;
use Thelia\Core\Event\Product\ProductDeleteAccessoryEvent;
use Thelia\Model\ProductSaleElementsQuery;
/**
* Manages products

View File

@@ -131,7 +131,7 @@ class FolderPath extends BaseI18nLoop
// Prevent circular refererences
if (in_array($parent, $ids)) {
throw new \LogicException(sprintf("Circular reference detected in category ID=%d hierarchy (category ID=%d appears more than one times in path)", $id, $parent));
throw new \LogicException(sprintf("Circular reference detected in folder ID=%d hierarchy (folder ID=%d appears more than one times in path)", $id, $parent));
}
$ids[] = $parent;