Details
-
Bug
-
Resolution: Unresolved
-
Medium
-
None
-
2011.6
-
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.