You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Many of my recipes were converted from other formats into JSON. Sometimes they contain empty lines in the instructions or the ingredients. When viewing a recipe, the empty entries are ignored, but all instructions/ingredients are shown correctly. But in the editing view no input field is shown for any of the instructions/ingredients.
I have to revert my statement. The problem lies in a bad data format that is generated by the backend. This is caused by the filters that remove the empty lines.
The problem is that the filter is used on output as well. Thus, in PHP an array with a missing index is generated. This cannot be translated to JSON directly (JS arrays are contiguous) but are translated into a JS object:
Description
Many of my recipes were converted from other formats into JSON. Sometimes they contain empty lines in the instructions or the ingredients. When viewing a recipe, the empty entries are ignored, but all instructions/ingredients are shown correctly. But in the editing view no input field is shown for any of the instructions/ingredients.
Reproduction
Steps to reproduce the behavior:
Expected behavior
All instructions and ingredients should be shown.
Actual behavior
No instructions and ingredients are shown.
Browser
Vivaldi 5.4.2753.51 (Stable channel) stable (64-Bit)
Versions
Nextcloud server version: 23.0.9
Cookbook version: 0.9.15
Database system: MariaDB
The text was updated successfully, but these errors were encountered: