Skip to content

Commit a596d16

Browse files
Can't edit charts imported from JSON
1 parent ee2f46e commit a596d16

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

classes/Visualizer/Module/Chart.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,9 @@ public function uploadData() {
10621062
// delete editor related data.
10631063
delete_post_meta( $chart_id, Visualizer_Plugin::CF_EDITOR );
10641064

1065+
// delete this so that a JSON import can be later edited manually without a problem.
1066+
delete_post_meta( $chart_id, Visualizer_Plugin::CF_EDITABLE_TABLE );
1067+
10651068
$source = null;
10661069
$render = new Visualizer_Render_Page_Update();
10671070
if ( isset( $_POST['remote_data'] ) && filter_var( $_POST['remote_data'], FILTER_VALIDATE_URL ) ) {

0 commit comments

Comments
 (0)