Skip to content

armgit / Vvveb

Public Imported from GitHub
0

Powerful and easy to use cms to build websites, blogs or ecommerce stores.

Changed shipping to requires_shipping to fix wrong column name

givanzaa0b7e715546
diff --git a/admin/controller/product/product.php b/admin/controller/product/product.php
index 1a632cc..1ae03fe 100755
--- a/admin/controller/product/product.php
+++ b/admin/controller/product/product.php
@@ -108,9 +108,10 @@ class Product extends Edit {
function save() {
$post = &$this->request->post;
- $post['shipping'] = isset($post['shipping']) ? 1 : 0;
- $post['manufacturer_id'] = isset($post['manufacturer_id']) ? ($post['manufacturer_id'] ?: 0) : null;
- $post['vendor_id'] = isset($post['vendor_id']) ? ($post['vendor_id'] ?: 0) : null;
+
+ $post['requires_shipping'] = isset($post['requires_shipping']) ? 1 : 0;
+ $post['manufacturer_id'] = isset($post['manufacturer_id']) ? ($post['manufacturer_id'] ?: 0) : null;
+ $post['vendor_id'] = isset($post['vendor_id']) ? ($post['vendor_id'] ?: 0) : null;
parent::save();