Browse Source

Bugfix in Update iamge handling

master
Daniel Gyulai 4 years ago
parent
commit
7379dfa248
  1. 1
      CoviDok/Data/MySQL/MySqlCaseHandler.cs

1
CoviDok/Data/MySQL/MySqlCaseHandler.cs

@ -94,6 +94,7 @@ namespace CoviDok.Data.MySQL
string[] forbidden = { "Updates" }; string[] forbidden = { "Updates" };
PropertyCopier<Case>.Copy(Case, c, forbidden); PropertyCopier<Case>.Copy(Case, c, forbidden);
context.Updates.Add(update); context.Updates.Add(update);
await context.SaveChangesAsync();
foreach (string ImageId in update.Images) foreach (string ImageId in update.Images)
{ {
Image image = new Image Image image = new Image

Loading…
Cancel
Save