Fixes the redirection after bill edition
This commit is contained in:
parent
ab95a3edda
commit
9af027fe29
2 changed files with 5 additions and 1 deletions
|
|
@ -1,3 +1,7 @@
|
||||||
|
2015-10-18 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
|
* BlogsController.cs: Fixes the redirection after bill edition
|
||||||
|
|
||||||
2015-10-18 Paul Schneider <paul@pschneider.fr>
|
2015-10-18 Paul Schneider <paul@pschneider.fr>
|
||||||
|
|
||||||
* App.master:
|
* App.master:
|
||||||
|
|
|
||||||
|
|
@ -295,7 +295,7 @@ namespace Yavsc.Controllers
|
||||||
model.Id = BlogManager.Post (model.Author, model.Title, model.Content, model.Visible, model.AllowedCircles);
|
model.Id = BlogManager.Post (model.Author, model.Title, model.Content, model.Visible, model.AllowedCircles);
|
||||||
if (model.Photo != null)
|
if (model.Photo != null)
|
||||||
BlogManager.UpdatePostPhoto (model.Id, model.Photo);
|
BlogManager.UpdatePostPhoto (model.Id, model.Photo);
|
||||||
return RedirectToAction ("Title", new { id = model.Title });
|
return RedirectToAction ("Title", new { title = model.Title });
|
||||||
}
|
}
|
||||||
ViewData ["AllowedCircles"] =
|
ViewData ["AllowedCircles"] =
|
||||||
CircleManager.DefaultProvider.List (
|
CircleManager.DefaultProvider.List (
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue