changeset 2100:46343e3f7a3e

Imports: Fixed small issue with de-serializing stretches.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 04 Feb 2019 12:49:50 +0100
parents 1baae9d31b3d
children 9372e4604a2c
files pkg/models/imports.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/models/imports.go	Mon Feb 04 12:30:58 2019 +0100
+++ b/pkg/models/imports.go	Mon Feb 04 12:49:50 2019 +0100
@@ -223,7 +223,7 @@
 		return err
 	}
 	sti.From = *f
-	to, found := attrs.Get("from")
+	to, found := attrs.Get("to")
 	if !found {
 		return errors.New("missing 'to' attribute")
 	}