nextcloud/cookbook

When creating a recipe or editing is , it randomly not save the last ingredient or the last instruction (or both)

Tonic8 opened this issue · 10 comments

Description
When creating a new recipe it won't save the last ingredient or the last instruction (or both). when editing to add the last ingredient or the last instruction, it won' save it again. to resolve the issue

  • i must add the ingredient i need, + 1 more (fake) ingredient or the last intruction + 1 more instruction (like "enjoy!")

it's seems to be random.

Reproduction
Steps to reproduce the behavior:

  1. Create a recipe
  2. add 6 ingredients
  3. add 6 instructions
  4. Save
  5. count the ingredient list saved
  6. count the instructions list saved

Expected behavior
:) the right numbers of ingredients or and instructions

Actual behavior
when it occur checking the json file result the last ingredient and/or instruction is not present.

Screenshots

  • Instructions manquantes01

  • Instructions manquantes02

  • editing the recipe to add the missing instruction and adding an extra instrcution

  • Instructions manquantes03

  • Instructions manquantes04

Browser
Chrome 122.0.6261.95 on windows 10

Versions
Nextcloud server version: 27.1.6
Cookbook version: 0.10.5
Database system: MariaDB

I have a very similar (potentially the same) issue: when adding instructions manually, these are not saved. One work-around I found was: add the new instruction; move it up; move it back down to the initial position; save

il will try , as fo rnow i add 1 extra inxtruction and 14 extra ingredient before saving the first time and then remove them

i just added 20 recipes today and had no issue.

i'm now running nextcloud 27.1.8 (previously on 27.1.6), but still with Cookbook 0.10.5

any suggestion or we close the ticket?

It will close itself unless someone steps in. Let's see if others have the problem as well.