Skip to content

Commit c3b8fe6

Browse files
authored
Merge pull request #173 from contactashish13/issue-65
bug on schedule import #65
2 parents 13e25b4 + 73177be commit c3b8fe6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
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: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,7 @@ msgstr ""
100100
#: classes/Visualizer/Module/Admin.php:458
101101
msgid "Pro Addon"
102102
msgstr ""
103-
104-
#: classes/Visualizer/Module/Chart.php:298
105-
#: classes/Visualizer/Module/Chart.php:580
103+
106104
msgid "You have entered invalid URL. Please, insert proper URL."
107105
msgstr ""
108106

0 commit comments

Comments
 (0)