File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -92,7 +92,8 @@ public function add($array)
9292 "use_limit_per_user " => isset ($ array ['user_limit ' ]) ? $ array ['user_limit ' ] : null ,
9393 "use_device " => isset ($ array ['use_device ' ]) ? $ array ['use_device ' ] : null ,
9494 "multiple_use " => isset ($ array ['multiple_use ' ]) ? $ array ['multiple_use ' ] : "no " ,
95- "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : 0
95+ "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : 0 ,
96+ "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : null
9697 ]);
9798 }
9899
@@ -134,7 +135,8 @@ public function update($array, $id)
134135 "use_limit_per_user " => isset ($ array ['user_limit ' ]) ? $ array ['user_limit ' ] : $ coupon ->use_limit_per_user ,
135136 "use_device " => isset ($ array ['use_device ' ]) ? $ array ['use_device ' ] : $ coupon ->use_device ,
136137 "multiple_use " => isset ($ array ['multiple_use ' ]) ? $ array ['multiple_use ' ] : $ coupon ->multiple_use ,
137- "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : $ coupon ->status
138+ "status " => isset ($ array ['status ' ]) ? $ array ['status ' ] : $ coupon ->status ,
139+ "vendor_id " => isset ($ array ['vendor_id ' ]) ? $ array ['vendor_id ' ] : $ coupon ->vendor_id
138140 ];
139141
140142 $ coupon ->update ($ data );
You can’t perform that action at this time.
0 commit comments