From 0416f520cff9716792ac0f3ade5f71187d07ac2e Mon Sep 17 00:00:00 2001 From: xengineering Date: Fri, 17 May 2024 17:06:55 +0200 Subject: view: Fix time stamp bug The recipe edit page HTML template did not contain the two time stamps "Created" and "LastChanged" as hidden form values. Thus the information was not passed from the backend to the frontend. On a save the recipe without time stamp information was injected into the backend. This effectively deleted any time stamp information. This commit fixes that bug by including all fields of the model.Recipe struct inside the form of the recipe-edit.html template. --- view/html/recipe-edit.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/view/html/recipe-edit.html b/view/html/recipe-edit.html index f8a6bd9..cd3ba86 100644 --- a/view/html/recipe-edit.html +++ b/view/html/recipe-edit.html @@ -10,6 +10,8 @@
+ +

-- cgit v1.2.3-70-g09d2