Skip to content

Foods with Leading Numbers in Name Not Added Properly to Shopping List #3750

@minermaniac447

Description

@minermaniac447

Tandoor Version

40a7db0

Setup

Docker / Docker-Compose

Reverse Proxy

SWAG

Other

No response

Bug description

When trying to add a food to the shopping list manually (through the search/dropdown field), if it starts with a number, it will show up properly as the full name in the search dropdown box, but when added to the shopping list the leading number and the word following will be interpreted as quantity and units. As an example:

Image
In the search bar, the food titled "21 Seasoning Salute" properly shows up, and one would expect that clicking it would add something to the effect of "1 (quantity) 21 Seasoning Salute (food)" to the list. Instead, what happens is this:

Image
"21 (quantity) Seasoning (unit) Salute (food)" is added, which is incorrect. I did test and the same bug is present on tandoor 1.0. The only way to properly add the food to the shopping list is by adding from a recipe:

Image
(this particular recipe uses it with no quantity, have not tested with one that has a quantity)

Image
Buggy result and expected result

Relevant logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions