Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Sep 20, 2022
1 parent 0a8fe88 commit 5fe6a43
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/MicroweberPackages/Content/ContentManagerHelpers.php
Expand Up @@ -650,6 +650,8 @@ public function save_from_live_edit($post_data)
$is_draft = 1;
}
$the_field_data_all = $post_data;
$this->app->event_manager->trigger('mw.content.save_edit.before', $the_field_data_all);

} else {
return array('error' => 'no POST?');
}
Expand Down Expand Up @@ -1218,6 +1220,7 @@ public function save_from_live_edit($post_data)
$cont_field_new = $this->app->content_manager->save_content_field($cont_field);
}


if ($save_global == true and $save_layout == false) {


Expand All @@ -1233,6 +1236,9 @@ public function save_from_live_edit($post_data)
}
}
}
$this->app->event_manager->trigger('mw.content.save_edit.after', $json_print);


if (isset($opts_saved)) {
$this->app->cache_manager->delete('options');
}
Expand Down

0 comments on commit 5fe6a43

Please sign in to comment.