Skip to content

Commit

Permalink
fixed product
Browse files Browse the repository at this point in the history
  • Loading branch information
alessiofx committed Dec 6, 2010
1 parent 2819637 commit 7b17e12
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -123,7 +123,7 @@ public function newAction()
elseif($attributes['products_attribute_type'] == 'media_image'){

if(!empty($_FILES['field'.$attributes['products_attribute_id']]['name'])){
$imgAdapther->productMore($_FILES['field'.$attributes['products_attribute_id']], $product_id, $attributes['products_attribute_id']);
$this->imgAdapther->productMore($_FILES['field'.$attributes['products_attribute_id']], $product_id, $attributes['products_attribute_id']);
$this->ValueModel->saveValue($product_id, $attributes['products_attribute_id'], '/meme-media/products/'.$product_id.'/');
}

Expand Down
4 changes: 2 additions & 2 deletions application/modules/admin/models/DbTable/ProductsTable.php
Expand Up @@ -282,11 +282,11 @@ public function getFromProductId($product_id)

$categories = $this->CategoryAddModel->getFromObjectId(3, $product_id);
$product['category'] = array();
$post['product_user'] = $this->UserModel->getUsername($product['product_user']);
$product['product_user'] = $this->UserModel->getUsername($product['product_user']);

$i_cat = 0;
foreach ($categories as $category):
$post['category'][$i_cat] = $category;
$product['category'][$i_cat] = $category;
$i_cat++;
endforeach;

Expand Down

0 comments on commit 7b17e12

Please sign in to comment.