From 7158923e782648a5335ad2fc1d03cb1802e85dd9 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Mon, 23 Jan 2017 09:16:31 +0100 Subject: [PATCH] fixes command creation when form was invalid --- Yavsc/Controllers/CommandController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Yavsc/Controllers/CommandController.cs b/Yavsc/Controllers/CommandController.cs index 84fc5980..947e1b77 100644 --- a/Yavsc/Controllers/CommandController.cs +++ b/Yavsc/Controllers/CommandController.cs @@ -189,6 +189,7 @@ namespace Yavsc.Controllers ViewBag.GoogleSettings = _googleSettings; return View("CommandConfirmation",command); } + ViewBag.Activity = _context.Activities.FirstOrDefault(a=>a.Code == command.ActivityCode); ViewBag.GoogleSettings = _googleSettings; return View(command); }