diff --git a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml index d0fd41b5..25fef61f 100644 --- a/src/main/java/net/mingsoft/cms/dao/IContentDao.xml +++ b/src/main/java/net/mingsoft/cms/dao/IContentDao.xml @@ -83,7 +83,7 @@ #{contentTitle}, #{contentCategoryId}, - #{contentType}, + #{contentType}, #{contentDisplay}, #{contentAuthor}, #{contentSource}, @@ -112,14 +112,14 @@ content_category_id=#{contentCategoryId}, content_type=#{contentType}, content_display=#{contentDisplay}, - content_author=#{contentAuthor}, - content_source=#{contentSource}, + content_author=#{contentAuthor}, + content_source=#{contentSource}, content_datetime=#{contentDatetime}, content_sort=#{contentSort}, content_img=#{contentImg}, - content_description=#{contentDescription}, - content_keyword=#{contentKeyword}, - content_details=#{contentDetails}, + content_description=#{contentDescription}, + content_keyword=#{contentKeyword}, + content_details=#{contentDetails}, content_url=#{contentUrl}, content_hit=#{contentHit}, app_id=#{appId}, diff --git a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl index d5be65e5..e8335c22 100644 --- a/src/main/webapp/WEB-INF/manager/cms/content/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/content/form.ftl @@ -448,6 +448,9 @@ if (res.data.contentType) { res.data.contentType = res.data.contentType.split(','); } + else { + res.data.contentType = []; + } if (res.data.contentImg) { res.data.contentImg = JSON.parse(res.data.contentImg); res.data.contentImg.forEach(function (value) {