Saving new recipe redirected to blank page.

This commit is contained in:
tim holloway 2024-02-17 16:51:06 -05:00
parent 34645fc8da
commit e7f373f663
2 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<groupId>com.mousetech.gourmet</groupId>
<artifactId>gourmetj</artifactId>
<version>0.2.6</version>
<version>0.2.7</version>
<packaging>jar</packaging>
<name>GourmetJ</name>

View File

@ -206,8 +206,8 @@ public class RecipeDetailBean implements Serializable {
/**
* After construction and injection, we obtain the recipe ID
* passed to us, if any and load the recipe. It's also stored
* in @see UserSession for the detail editor and
* passed to us, if any, and load the recipe. It's also stored
* in @see UserSession for the detail editor.
*
* @see PictureController.
*/
@ -720,7 +720,7 @@ public class RecipeDetailBean implements Serializable {
}
if (recipeService.save(this.getRecipe())) {
userSession.setRecipe(null);
////////////userSession.setRecipe(null);
return "recipeDetails?faces-redirect=true";
} else {
JSFUtils.addErrorMessage("Save recipe failed");