Skip to content

Commit 26d2eb4

Browse files
bug on schedule import #65
1 parent b366dee commit 26d2eb4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

classes/Visualizer/Module/Admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public function renderLibraryPage() {
360360
unset( $settings['height'], $settings['width'] );
361361
$type = get_post_meta( $chart->ID, Visualizer_Plugin::CF_CHART_TYPE, true );
362362
$series = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_SERIES, get_post_meta( $chart->ID, Visualizer_Plugin::CF_SERIES, true ), $chart->ID, $type );
363-
$data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( $chart->post_content ), $chart->ID, $type );
363+
$data = apply_filters( Visualizer_Plugin::FILTER_GET_CHART_DATA, unserialize( html_entity_decode( $chart->post_content ) ), $chart->ID, $type );
364364
// add chart to the array
365365
$charts[ 'visualizer-' . $chart->ID ] = array(
366366
'id' => $chart->ID,

classes/Visualizer/Source/Csv/Remote.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ private function _repopulate( $chart_id ) {
7272
// if filename is empty, extract it from chart content
7373
if ( empty( $this->_filename ) ) {
7474
$chart = get_post( $chart_id );
75-
$data = unserialize( $chart->post_content );
75+
$data = unserialize( html_entity_decode( $chart->post_content ) );
7676
if ( ! isset( $data['source'] ) ) {
7777
return false;
7878
}

languages/visualizer.pot

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ msgid ""
44
msgstr ""
55
"Project-Id-Version: Visualizer: Charts and Graphs Lite 2.0.5\n"
66
"Report-Msgid-Bugs-To: https://github.com/Codeinwp/visualizer/issues\n"
7-
"POT-Creation-Date: 2017-05-04 11:51:27+00:00\n"
7+
"POT-Creation-Date: 2017-05-10 07:47:44+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -102,7 +102,7 @@ msgid "Pro Addon"
102102
msgstr ""
103103

104104
#: classes/Visualizer/Module/Chart.php:295
105-
#: classes/Visualizer/Module/Chart.php:574
105+
#: classes/Visualizer/Module/Chart.php:576
106106
msgid "You have entered invalid URL. Please, insert proper URL."
107107
msgstr ""
108108

0 commit comments

Comments
 (0)