[TYPO3-commerce] Backend-User has no rights to edit an article.... BUG ?

Frank K. azazel at gmx.li
Tue Oct 23 13:21:42 CEST 2007


Found this (and it WORKS !!!) - thanks to  Axel Klarmann:



REPLACE in commerce/hooks/class.tx_commerce_dmhooks.php
on line 522
                    array(
                        'uid_product' => $pUid,
                        'article_type_uid' => 1,
                        'title' => $productData['title']
                    )

with
                    array(
                        'pid' => $fieldArray["pid"],
                        'uid_product' => $pUid,
                        'article_type_uid' => 1,
                        'title' => $productData['title']
                    )

AND on line 539
                $pRes = 
$GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_commerce_article_prices', 
array('uid_article' => $aUid));

with
                $pRes = 
$GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_commerce_article_prices', 
array('pid' => $fieldArray["pid"],'uid_article' => $aUid)); 




More information about the TYPO3-project-commerce mailing list