Closed (fixed)
Project:
Recipe
Version:
8.x-2.0-beta1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
31 Jul 2021 at 23:37 UTC
Updated:
29 Jul 2022 at 01:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dcam commentedWhat values did you attempt to enter into the ingredient field to get these results? Were you entering these values as you've written above?
Comment #3
tresero commentedSorry, I was never notified of a response. I don't have that site anymore, but am building a new one so I'll check in the next few days.
Comment #4
okuegler commentedI had a similar issue. For me it crashed when the ingredient quantity was not entered. The problem is that the getQuantityFromFraction function in this case returns an empty string, which crashed the round function in massageFormValues on line 157 of IngredientWidget.php. I created a patch that should always return a number, not a string.
Comment #5
WebbehPer #4.
Comment #6
WebbehComment #7
soubi#4 works on Drupal 9.4.2
Comment #8
dcam commentedI should have guessed that this is a PHP 8.x problem. I ran into it after I started trying to upgrade the module for D10 because it requires PHP 8. The errors in the PHP 8 test that I ran are unrelated and will be dealt with in the D10 patch. Thank you @okuegler for supplying a patch!
Comment #10
dcam commented