c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #37606
[Bug 891271] [NEW] update and create function broken on magento 1.6.1
Public bug reported:
Hello,
I install magento 1.6.1 and the latest version of the connector.
Note : i setup a dedicated magento with only the connector as extension to be sure.
When installed, it break the magento API due some broken part into the
extended API in creation and update of products.
Some part of my debug:
In creation mode, some part of product are available (sku, stock, website_id) but nothing in description, status, weight,...
So the product is not visible into the backend of magento.
I think there is a problem with this part into Ol_Catalog/Products.php
where attributes are not processed.
foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute) {
if ($this->_isAllowedAttribute($attribute)
&& isset($productData[$attribute->getAttributeCode()])) {
$product->setData(
$attribute->getAttributeCode(),
$productData[$attribute->getAttributeCode()]
);
}
}
This part where attribute name is declare is processed :
if (isset($productData['website_ids']) && is_array($productData['website_ids'])) {
$product->setWebsiteIds($productData['website_ids']);
}
In update mode get same problem with the foreach.
Thanks for your help to solve this.
Regards,
Thierry
** Affects: magentoerpconnect
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/891271
Title:
update and create function broken on magento 1.6.1
Status in Magento OpenERP Connector:
New
Bug description:
Hello,
I install magento 1.6.1 and the latest version of the connector.
Note : i setup a dedicated magento with only the connector as extension to be sure.
When installed, it break the magento API due some broken part into the
extended API in creation and update of products.
Some part of my debug:
In creation mode, some part of product are available (sku, stock, website_id) but nothing in description, status, weight,...
So the product is not visible into the backend of magento.
I think there is a problem with this part into
Ol_Catalog/Products.php where attributes are not processed.
foreach ($product->getTypeInstance(true)->getEditableAttributes($product) as $attribute) {
if ($this->_isAllowedAttribute($attribute)
&& isset($productData[$attribute->getAttributeCode()])) {
$product->setData(
$attribute->getAttributeCode(),
$productData[$attribute->getAttributeCode()]
);
}
}
This part where attribute name is declare is processed :
if (isset($productData['website_ids']) && is_array($productData['website_ids'])) {
$product->setWebsiteIds($productData['website_ids']);
}
In update mode get same problem with the foreach.
Thanks for your help to solve this.
Regards,
Thierry
To manage notifications about this bug go to:
https://bugs.launchpad.net/magentoerpconnect/+bug/891271/+subscriptions
Follow ups
References