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

rel #13914 : getting default category for unclassified album is...

rel #13914 : getting default category for unclassified album is AlbumCategorie's loader responsibility
parent df3c5f27
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
......@@ -51,6 +51,13 @@ class AlbumCategorieLoader extends Storm_Model_Loader {
asort($libelles);
return $libelles;
}
public function defaultCategory() {
return Class_AlbumCategorie::newInstanceWithId(0)
->setLibelle('Albums non classés')
->setSousCategories([]);
}
}
......
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