Ad Widget

Collapse

Graph y-axis side is lost in XML export

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hama
    Junior Member
    • Aug 2008
    • 4

    #1

    Graph y-axis side is lost in XML export

    It seems y-axis side is lost in XML export/import. This is with version 1.4.5.

    The problem is in export.inc.php and/or import.inc.php.

    The value of "left" is "0", so it's not written in the export files. Then when the import does importing, the default value is set to "1" instead of "0". Thus, every graph item having y-axis side set to left will disappear after export.

    Here are the code lines, I believe. The first line is from export.inc.php, and the code line skips all elements which have "0" value. The second line is from import.inc.php where "yaxisside" is set to "1" if it's not set already.
    Code:
    export.inc.php, line 241: if(empty($data[$db_name])) continue;
    Code:
    import.inc.php, line567: if(!isset($data['yaxisside']))          $data['yaxisside']      = 1;
Working...