From a9346fad2e8c6a055a9271d876ff3b7ffd1fdc65 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 15 Feb 2019 10:37:04 +0800 Subject: [PATCH] - specially handle places in UpdateSkuName --- business/jxstore/cms/sku.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/business/jxstore/cms/sku.go b/business/jxstore/cms/sku.go index 920a1a135..1edc52611 100644 --- a/business/jxstore/cms/sku.go +++ b/business/jxstore/cms/sku.go @@ -492,6 +492,9 @@ func UpdateSkuName(ctx *jxcontext.Context, nameID int, payload map[string]interf } valid := dao.StrictMakeMapByStructObject(payload, skuName, userName) valid = utils.RemoveGeneralMapKeys(valid, model.FieldSpecQuality, model.FieldSpecUnit) + if places, ok := payload["places"]; ok { + valid["places"] = places + } if len(valid) > 0 { globals.SugarLogger.Debugf("UpdateSkuName valid:%s", utils.Format4Output(valid, false)) dao.Begin(db)