Skip to content

Commit aa0b7e7

Browse files
committed
Changed shipping to requires_shipping to fix wrong column name
1 parent 3a563b8 commit aa0b7e7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

admin/controller/product/product.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,10 @@ function saveOptions() {
108108

109109
function save() {
110110
$post = &$this->request->post;
111-
$post['shipping'] = isset($post['shipping']) ? 1 : 0;
112-
$post['manufacturer_id'] = isset($post['manufacturer_id']) ? ($post['manufacturer_id'] ?: 0) : null;
113-
$post['vendor_id'] = isset($post['vendor_id']) ? ($post['vendor_id'] ?: 0) : null;
111+
112+
$post['requires_shipping'] = isset($post['requires_shipping']) ? 1 : 0;
113+
$post['manufacturer_id'] = isset($post['manufacturer_id']) ? ($post['manufacturer_id'] ?: 0) : null;
114+
$post['vendor_id'] = isset($post['vendor_id']) ? ($post['vendor_id'] ?: 0) : null;
114115

115116
parent::save();
116117

0 commit comments

Comments
 (0)