Fixes the redirection after bill edition

This commit is contained in:
Paul Schneider
2015-10-18 16:10:15 +02:00
parent ab95a3edda
commit 9af027fe29
2 changed files with 5 additions and 1 deletions

View File

@ -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>
* App.master:

View File

@ -295,7 +295,7 @@ namespace Yavsc.Controllers
model.Id = BlogManager.Post (model.Author, model.Title, model.Content, model.Visible, model.AllowedCircles);
if (model.Photo != null)
BlogManager.UpdatePostPhoto (model.Id, model.Photo);
return RedirectToAction ("Title", new { id = model.Title });
return RedirectToAction ("Title", new { title = model.Title });
}
ViewData ["AllowedCircles"] =
CircleManager.DefaultProvider.List (