diff --git a/BeWoPlanerMobil/Controllers/MainController.cs b/BeWoPlanerMobil/Controllers/MainController.cs index b52d87a9a..8857d5094 100644 --- a/BeWoPlanerMobil/Controllers/MainController.cs +++ b/BeWoPlanerMobil/Controllers/MainController.cs @@ -50,7 +50,7 @@ namespace BeWoPlanerMobil.Controllers public bool SkipModelInitialization { get; set; } public bool SkipServiceRecordInitialization { get; set; } - + public MainModel Model { get @@ -1144,7 +1144,8 @@ namespace BeWoPlanerMobil.Controllers if(objectOid <= 0) { - return RedirectToAction("Main", "Main", Model); + //return RedirectToAction("Main", "Main", Model); + return RedirectToActionPermanent("Main", "Main"); } var serviceRecord = GetServiceRecordDC(objectOid, false); @@ -1154,7 +1155,8 @@ namespace BeWoPlanerMobil.Controllers Log.Error("Einzelunterschrift konnte nicht gespeichert werden, da der Zeiterfassungseintrag im Model nicht gefunden werden konnte."); TempData[TempDataConstants.ErrorMessageKey] = "Beim Speichern der Unterschrift ist ein Fehler aufgetreten. Bitte wenden Sie sich an Ihren Administrator."; - return RedirectToAction("Main", "Main", Model); + //return RedirectToAction("Main", "Main", Model); + return RedirectToActionPermanent("Main", "Main"); } long? oid; @@ -1166,7 +1168,8 @@ namespace BeWoPlanerMobil.Controllers if(!isValid) { TempData[TempDataConstants.ErrorMessageKey] = "Das Unterschriftenfeld darf nicht leer sein."; - return RedirectToAction("Main", "Main", Model); + //return RedirectToAction("Main", "Main", Model); + return RedirectToActionPermanent("Main", "Main"); } oid = OperationsService.InsertSignature(new SignatureDC @@ -1191,7 +1194,8 @@ namespace BeWoPlanerMobil.Controllers Log.Error("Fehler beim Speichern der Einzelunterschrift: " + ex.Message, ex); } - return RedirectToAction("Main", "Main", Model); + //return RedirectToAction("Main", "Main", Model); + return RedirectToActionPermanent("Main", "Main"); } [Authorize] diff --git a/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml b/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml index 817b441c5..02201c53f 100644 --- a/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/RestoreServiceRecordInputsPartial.cshtml @@ -389,6 +389,8 @@ } function readWholeLocalStorage() { + console.log(`Es wurden ${localStorage.length} lokale gespeicherte Werte gefunden:`); + logInfo3(`Es wurden ${localStorage.length} lokale gespeicherte Werte gefunden:`); for(let i = 0; i < localStorage.length; i++) { @@ -445,26 +447,27 @@ if(Html.IsInDebugMode()) { -
- - - - -
+
+ + + + + +
} } diff --git a/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml b/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml index c5429d124..f2096635c 100644 --- a/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml +++ b/BeWoPlanerMobil/Views/Main/SingleSignaturePopupPartial.cshtml @@ -1,4 +1,5 @@ @using BeWoPlanerMobil.Util +@using BS.Shared @model BeWoPlanerMobil.Models.MainModel