Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/magento/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php Magento:选项卡内的网格在保存时提供无效的选项卡数据_Php_Magento - Fatal编程技术网

Php Magento:选项卡内的网格在保存时提供无效的选项卡数据

Php Magento:选项卡内的网格在保存时提供无效的选项卡数据,php,magento,Php,Magento,您好,我有一个扩展客户编辑页面的选项卡小部件。在一个选项卡中,我想显示产品网格 $this->addTab('vendorproducts', array( 'label' => Mage::helper('customer')->__('Products'), 'class' => 'ajax', 'url' => $

您好,我有一个扩展客户编辑页面的选项卡小部件。在一个选项卡中,我想显示产品网格

            $this->addTab('vendorproducts', array(
                'label'     => Mage::helper('customer')->__('Products'),
                'class'     => 'ajax',
                'url'       => $this->getUrl('namespace/adminhtml_tabs/products', array('_current' => true)),
        ));  

然后在该函数中,我按原样加载产品网格块。但是,当我加载选项卡并试图保存客户时,它会将错误css类添加到选项卡中,阻止其保存,我也尝试将网格复制到新文件并从那里加载,但它仍然会给我一个错误,有没有办法避免magento附加错误类,或者有什么我需要添加到网格块中吗?

错误是因为在产品网格上由_prepareMassaction和exports方法创建的字段,您应该创建产品的自定义网格,而不使用此方法