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

Notice: Undefined index: grouping

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Medium Medium
    • None
    • 4.5.0
    • Legacy > Workflows
    • None
    • Operating System: ubuntu server 11.04
      PHP Version: '5.2.11'
      Database and version:mysql
      Browser (and version):

    Description

      Notice: Undefined index: grouping in /ezpublish/kernel/classes/ezpersistentobject.php on line 837

              if ( isset( $def["grouping"] ) or ( is_array( $grouping ) and count( $grouping ) > 0 ) )
              {
                  $grouping_list = $def["grouping"];
                  if ( is_array( $grouping ) )
                      $grouping_list = $grouping;
      

      the notice is fired when $gouping parameter is define outsite $def array.

      The lines above should be modified like this

              if ( isset( $def["grouping"] ) or ( is_array( $grouping ) and count( $grouping ) > 0 ) )
              {
                  $grouping_list = isset( $def["grouping"] )  ? $def["grouping"] : $grouping ;
                
      

      thanks

      Attachments

        Activity

          People

            unknown unknown
            mkarnichi mkarnichi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: