From dbdd46e5477d8288970b564550616e0ba8fcd5e2 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 26 Oct 2016 13:34:34 -0700 Subject: need to process string in case external suffix is found where it should not be --- system/db/content.go | 1 + 1 file changed, 1 insertion(+) (limited to 'system') diff --git a/system/db/content.go b/system/db/content.go index 089426e..39ab5c2 100644 --- a/system/db/content.go +++ b/system/db/content.go @@ -120,6 +120,7 @@ func insert(ns string, data url.Values) (int, error) { func postToJSON(ns string, data url.Values) ([]byte, error) { // find the content type and decode values into it + ns = strings.TrimSuffix(ns, "_external") t, ok := content.Types[ns] if !ok { return nil, fmt.Errorf(content.ErrTypeNotRegistered, ns) -- cgit v1.2.3