|
|
|
@ -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"); |
|
|
|
|