Bugfix neuer Eintrag an Tag ohne vorhandene Einträge
This commit is contained in:
@@ -172,8 +172,11 @@ internal class StundeViewModel : ObservableObject, IQueryAttributable {
|
||||
DateTime _date = DateTime.ParseExact((string)query["date"], "yyyy-MM-dd", System.Globalization.CultureInfo.InvariantCulture);
|
||||
|
||||
//Bei neuem Eintrag die vorhandenen des gleichen Tages anzeigen
|
||||
try {
|
||||
DayTimes = await Models.Stunde.LoadDay(_date);
|
||||
|
||||
} catch (Exception) {
|
||||
//Ein Tag ohne Einträge gibt eine Fehlermeldung, die soll aber ignoriert werden, weil beim Neueintrag ist das ja Wurscht
|
||||
}
|
||||
|
||||
_stunde.day = _date;
|
||||
SubTitle = _date.ToString("dddd, d. MMM. yyyy");
|
||||
|
||||
Reference in New Issue
Block a user