nextcloud / cookbook

🍲 A library for all your recipes
https://apps.nextcloud.com/apps/cookbook
GNU Affero General Public License v3.0
540 stars 93 forks source link

Fraction sometime get converted, sometime not. Don't want them converted #2576

Open nodiaque opened 1 week ago

nodiaque commented 1 week ago

Description When adding ingredient, sometime fraction are required like 2/3 cup of water or 1/4 tablespoon of salt. The fraction 1/4 stay as 1/4 once saved but the 2/3 get transformed to 0.67. I want the fraction to stay and not have the decimal number (in fact, I want what I enter to stay). It seems to work for 1/2, 1/4, 3/4 but not 1/3, 2/3.

Also, when adding quantity, don't show 0/1

Reproduction Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Actual behavior Image Should be 2/3 not 0.67

After changing quantity, now displaying a 0/1: Image

Screenshots Recipe edit: Image

Browser Edge

Versions Nextcloud server version: 30.0.2 Cookbook version: 0.11.2 Database system: PostgreSQL