fixed delete in view_app. Also some other things but i forgot everything
This commit is contained in:
@@ -19,10 +19,10 @@ class SaveMainEntryMethod {
|
||||
placeDB = ExcursionDBHelper();
|
||||
}
|
||||
|
||||
int entryId;
|
||||
if (isTemplate) placeDB!.deleteTemplateById(entryData["ID"]!);
|
||||
|
||||
// Get the ID of the newly added or updated place
|
||||
if (entryData["ID"] == "") {
|
||||
int entryId;
|
||||
if (isTemplate || entryData["ID"] == "") {
|
||||
entryData.remove("ID");
|
||||
entryId = await placeDB!.addMainEntry(entryData);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user