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> <groupId>com.mousetech.gourmet</groupId>
<artifactId>gourmetj</artifactId> <artifactId>gourmetj</artifactId>
<version>0.2.6</version> <version>0.2.7</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>GourmetJ</name> <name>GourmetJ</name>

View File

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