Skip to content

Shopping list shows recipe file names instead of their titles #624

Closed

Description

@LeMyst

The "Selected recipes" panel of the shopping list names each recipe by its file name, even when the recipe declares a title. With the seed, adding lamb-chops.cook (title: Sicilian-style Scottadito Lamb Chops) or Risotto.cook (title: Classic Risotto alla Milanese) shows lamb-chops and Risotto. The recipe's own page, the index cards and the menu page all show the title, so the list is the odd one out.

The same goes for menus, the recipes nested in a menu entry, and the sub-recipes listed under an entry (ref.split('/').pop() in templates/shopping_list.html).

Where it came from: 7700032 (#318, "migrate shopping list to new format with checked state"). Before it, the recipe page posted name: '{{ recipe.name }}' (the title) and the list stored it. The .shopping-list format stores no name, so since #318 GET /api/shopping_list/items derives name from the path with recipe_display_name() (Breakfast/Easy Pancakes.cook → Easy Pancakes).

Expected: each entry, nested recipe and sub-recipe shows the title its file declares, falling back to the file name when it has none or can't be read.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions