Skip to content

Commit e7aac02

Browse files
authored
Merge pull request #63 from EmilsM/feature/single-id-fix
Clerk API Single product ID fix
2 parents 21d362d + 63e3d50 commit e7aac02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/controllers/ApiController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function productAction()
8383
if ($id) {
8484
$id = $this->getIntParam('id');
8585
if (Mage::helper('clerk')->isProductIdValid($id)) {
86-
$data = Mage::getModel('clerk/product')->load($id)->getInfo();
86+
$response = Mage::getModel('clerk/product')->load($id)->getInfo();
8787
} else {
8888
$response = [
8989
'error' => [

0 commit comments

Comments
 (0)