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

Possible bug in placementKey() in eztemplateblockfunction.php -- PATCH included

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.10.0, 3.8.10, 3.9.4
    • 3.8.6, 3.9.0
    • Misc
    • None
    • doesn't matter

    Description

      In method placementKey() of class eZTemplateBlockFunction in lib/eztemplate/classes/eztemplateblockfunction.php a variable $input is being build in three steps, with third once overwriting values from first and second:

                 $input = $placement[0][0] . ',' . $placement[0][1] . "\n";
                  $input .= $placement[1][0] . ',' . $placement[1][1] . "\n";
                  $input = $placement[2];
      

      While I haven't seen any troubles caused by it yet, it seems to be a bug to me, and hence this report and path.

      Affects both eZ P v 3.9.0 and v 3.8.6. I haven't checked for it in 3.9.1rc1

      Steps to reproduce

      Spotted while browsing the code, no known syptoms.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: