Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.10.0, 4.0.0beta1
-
None
-
Operating System: linux
PHP Version: 4.4.4
Database and version: mysql 5.0.32
Browser (and version): Firefox 2.0.0.1
Description
When I want to display a product containing the datatype multioption2 I get the following error:
Fatal error: Call to a member function on a non-object in /var/www/admin.intra.mediata.com/software-source/ez-publish/GPL/ezpublish-3.10.0/kernel/classes/datatypes/ezmultioption2/ezmultioption2type.php on line 527
Fatal error: eZ Publish did not finish its request
This is caused by a bug in function hasObjectAttributeContent of class eZMultiOption2Type.
Instead of
function hasObjectAttributeContent( &$contentObjectAttribute ) { $groups =& $contentObjectAttribute->content(); $grouplist = $multioption->attribute( 'optiongroup_list' ); return count( $grouplist ) > 0; }
it must be
function hasObjectAttributeContent( &$contentObjectAttribute ) { $groups =& $contentObjectAttribute->content(); $grouplist = $groups->attribute( 'optiongroup_list' ); return count( $grouplist ) > 0; }
Steps to reproduce
Create a product which contains the datatype multioption2
Try to view the product in frontend
Attachments
Issue Links
- is duplicated by
-
EZP-12075 Multi-option2 causes fatal with attribute operator
- Closed