File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -188,11 +188,13 @@ public function findAllCategories(string $user_id) {
188188
189189 /**
190190 * @throws \OCP\AppFramework\Db\DoesNotExistException if not found
191+ *
192+ * Using '_' as a placeholder for recipes w/o category
191193 */
192194 public function getRecipesByCategory (string $ category , string $ user_id ) {
193195 $ qb = $ this ->db ->getQueryBuilder ();
194196
195- if ($ category != 'None ' )
197+ if ($ category != '_ ' )
196198 {
197199 $ qb ->select (['r.recipe_id ' , 'r.name ' ])
198200 ->from (self ::DB_TABLE_CATEGORIES , 'k ' )
Original file line number Diff line number Diff line change 1313 </Breadcrumb >
1414 <!-- SEARCH PAGE -->
1515 <Breadcrumb v-if =" isSearch" class =" not-link" :title =" searchTitle" :disableDrop =" true" />
16- <Breadcrumb v-if =" isSearch && $route.params.value" class =" active" :title =" $route.params.value" :disableDrop =" true" />
16+ <Breadcrumb v-if =" isSearch && $route.params.value" class =" active" :title =" $route.params.value=='_'?'None':$route.params.value " :disableDrop =" true" />
1717 <!-- RECIPE PAGES -->
1818 <!-- Edit recipe -->
1919 <Breadcrumb v-if =" isEdit" class =" not-link" :title =" t('cookbook', 'Edit recipe')" :disableDrop =" true" />
Original file line number Diff line number Diff line change 2222 <AppNavigationItem :title =" t('cookbook', 'All recipes')" icon =" icon-category-organization" :to =" '/'" >
2323 <AppNavigationCounter slot =" counter" >{{ totalRecipeCount }}</AppNavigationCounter >
2424 </AppNavigationItem >
25- <AppNavigationItem :title =" t('cookbook', 'Uncategorized recipes')" icon =" icon-category-organization" :to =" '/category/None /'" >
25+ <AppNavigationItem :title =" t('cookbook', 'Uncategorized recipes')" icon =" icon-category-organization" :to =" '/category/_ /'" >
2626 <AppNavigationCounter slot =" counter" >{{ uncatRecipes }}</AppNavigationCounter >
2727 </AppNavigationItem >
2828 <AppNavigationItem v-for =" (cat,idx) in categories"
You can’t perform that action at this time.
0 commit comments