Powerful and easy to use cms to build websites, blogs or ecommerce stores.
HTML backendblogblog-engineblog-platformbloggingcmscontent-managementcontent-management-systemecommerceecommerce-platformno-codepage-builderphpphp-cmsphp7php8self-hostedshopping-cartweb-applicationwebsite-builder
Fixed page builder post content edit save bug
givanz37b62c4ae62c
diff --git a/app/component/post.php b/app/component/post.phpindex b3c636e..84c50c3 100755--- a/app/component/post.php+++ b/app/component/post.php@@ -136,15 +136,15 @@ class Post extends ComponentBase {}}- if ($post) {- //$post['post_id'] = $id;- $result = $posts->edit(['post' => $post, 'post_id' => $id]);- }-if ($post_content) {$post_content['language_id'] = self :: $global['language_id'];//$post['post_content']['post_id'] = $id;$result = $posts->editContent(['post_content' => $post_content, 'post_id' => $id, 'language_id' => self :: $global['language_id']]);}++ if ($post || $post_content) {+ $post['post_id'] = $id;+ $result = $posts->edit(['post' => $post, /* 'post_content' => [$post_content],*/ 'post_id' => $id]);+ }}}