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) {
188
188
189
189
/**
190
190
* @throws \OCP\AppFramework\Db\DoesNotExistException if not found
191
+ *
192
+ * Using '_' as a placeholder for recipes w/o category
191
193
*/
192
194
public function getRecipesByCategory (string $ category , string $ user_id ) {
193
195
$ qb = $ this ->db ->getQueryBuilder ();
194
196
195
- if ($ category != 'None ' )
197
+ if ($ category != '_ ' )
196
198
{
197
199
$ qb ->select (['r.recipe_id ' , 'r.name ' ])
198
200
->from (self ::DB_TABLE_CATEGORIES , 'k ' )
Original file line number Diff line number Diff line change 13
13
</Breadcrumb >
14
14
<!-- SEARCH PAGE -->
15
15
<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" />
17
17
<!-- RECIPE PAGES -->
18
18
<!-- Edit recipe -->
19
19
<Breadcrumb v-if =" isEdit" class =" not-link" :title =" t('cookbook', 'Edit recipe')" :disableDrop =" true" />
Original file line number Diff line number Diff line change 22
22
<AppNavigationItem :title =" t('cookbook', 'All recipes')" icon =" icon-category-organization" :to =" '/'" >
23
23
<AppNavigationCounter slot =" counter" >{{ totalRecipeCount }}</AppNavigationCounter >
24
24
</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/_ /'" >
26
26
<AppNavigationCounter slot =" counter" >{{ uncatRecipes }}</AppNavigationCounter >
27
27
</AppNavigationItem >
28
28
<AppNavigationItem v-for =" (cat,idx) in categories"
You can’t perform that action at this time.
0 commit comments