Browse Source

Fix shop attributes deleting

Vova Tkach 5 years ago
parent
commit
5729d2f0e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/module_shop_attributes_act_delete.go

+ 1 - 1
modules/module_shop_attributes_act_delete.go

@@ -13,7 +13,7 @@ func (this *Modules) RegisterAction_ShopAttributesDelete() *Action {
 	}, func(wrap *wrapper.Wrapper) {
 		pf_id := wrap.R.FormValue("id")
 
-		if !utils.IsNumeric(pf_id) || utils.StrToInt(pf_id) <= 1 {
+		if !utils.IsNumeric(pf_id) {
 			wrap.MsgError(`Inner system error`)
 			return
 		}