diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-03-07 00:01:47 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-03-07 00:01:47 -0800 |
commit | 98391be4d00e677b7532e9dcfe11babbbfe2c303 (patch) | |
tree | ef407ec0eaa669db54647c4c72b493c8215c0828 | |
parent | 986a2130a59b25fdc7730b3a974d5f5338bd7cb1 (diff) |
updating reference package
-rw-r--r-- | addons/github.com/bosssauce/reference/reference.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/github.com/bosssauce/reference/reference.go b/addons/github.com/bosssauce/reference/reference.go index 9918f36..753fa41 100644 --- a/addons/github.com/bosssauce/reference/reference.go +++ b/addons/github.com/bosssauce/reference/reference.go @@ -115,7 +115,7 @@ func SelectRepeater(fieldName string, p interface{}, attrs map[string]string, co func encodeDataToOptions(contentType, tmplString string) (map[string]string, error) { // encode all content type from db into options map - // options in form of map["?type=<contentType>&id=<id>"]t.String() + // options in form of map["/api/content?type=<contentType>&id=<id>"]t.String() options := make(map[string]string) var all map[string]interface{} @@ -134,7 +134,7 @@ func encodeDataToOptions(contentType, tmplString string) (map[string]string, err for i := range data { item := data[i].(map[string]interface{}) - k := fmt.Sprintf("?type=%s&id=%.0f", contentType, item["id"].(float64)) + k := fmt.Sprintf("/api/content?type=%s&id=%.0f", contentType, item["id"].(float64)) v := &bytes.Buffer{} err := tmpl.Execute(v, item) if err != nil { |