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

Problem with borders in tables in ezoe in 2011.6

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 2011.6
    • Fix Version/s: None
    • Component/s: Legacy > Extensions
    • Labels:
      None

      Description

      I have found a problem in 2011.6, ezoe 5.40-dev, reediting tables.

      If a table is saved with no border, still it gets a border 1 when loaded into ezoe for reediting.

      Have a look in ezoe/ezxmltext/handlers/input/ezoexmlinput.php around line 1530:

       
      if ( is_string( $border ) ) 
      
      

      I believe this check is not enough, as the $border variable still is a string when empty.

      I changed to the line below, and now it seems to work:

       
       if ( is_string( $border ) && !empty($border) ) 
      
      

      Steps to reproduce

      In 2011.6, create a table with ezoe in any content object.
      Set the border to 0 for the table.
      Now publish the object.
      Then edit the object again.
      Now, notice that in edit mode the border property is now set to 1.

        Activity

        Nicklas Lundgren created issue -
        André Rømcke made changes -
        Field Original Value New Value
        Workflow eZ Community Workflow [ 21106 ] eZ Engineering Scrumban Workflow [ 35189 ]
        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 35189 ] EZ* Development Workflow [ 68451 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 68451 ] EZEE Development Workflow [ 106626 ]

          People

          • Assignee:
            unknown
            Reporter:
            Nicklas Lundgren
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: