Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-11313

eZContentClassAttribute constructor does not check if $row['serialized_name_list'] is set

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0
    • 3.10.0beta1, 3.9.3, 4.0.0trunk
    • Misc
    • None

    Description

      Like eZContentClass does in its constructor, eZContentClassAttribute should also first check if the key is set in the $row array. Otherwise you will get warnings like:

      Undefined index:  serialized_name_list in c:\sites\ez39php4\kernel\classes\ezcontentclassattribute.php on line 50
      

      These warnings will for example appear when you use a function of eZContentClassAttribute as the the function to return the policy function limitation values (example: attributeedit_policy hack), because kernel/role/edit.php instantiates an object of the specified class first and calls the function on that object.

      $obj = new $limitation['class']( array() );
                  $limitationValueList = call_user_func_array ( array( &$obj , $limitation['function']) , $limitation['parameter'] );
      

      You could say that this behavior should be changed as well, and do a static call.

      Attachments

        Activity

          People

            dp dp
            cyberwolf cyberwolf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: