Skip to content
Snippets Groups Projects
Commit 765c2974 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #13914 : ask loader for default category

parent 83b61f57
Branches
Tags
6 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!215Dev#12992 Custom Fields,!214Hotline 6.46,!212Hotline Indexation Mots Vide,!210Hotline#13914 Album Link Config Menu,!209Hotline#13914 Album Link Config Menu
......@@ -34,9 +34,7 @@ class Admin_AlbumController extends ZendAfi_Controller_Action {
public function indexAction() {
$categories = Class_AlbumCategorie::findAllBy(['parent_id' => 0, 'order' => 'libelle']);
$categories []= Class_AlbumCategorie::newInstanceWithId(0)
->setLibelle('Albums non classés')
->setSousCategories([])
$categories []= Class_AlbumCategorie::defaultCategory()
->setAlbums(Class_Album::findAllBy(['cat_id' => 0]));
$this->view->categories = [['bib' => Class_Bib::getPortail(),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment