diff --git a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl index 67685eea..657ae2f5 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/form.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/form.ftl @@ -540,11 +540,15 @@ this.categoryUrlOptionsGet(); this.categoryFlagOptionsGet(); this.form.id = ms.util.getParameter("id"); + this.form.child = ms.util.getParameter("child"); - if (this.form.id) { + this.categoryTypeDisabled = false; + if (this.form.id != undefined && this.form.child == undefined) { + this.categoryTypeDisabled = true; this.get(this.form.id); - } else { - this.categoryTypeDisabled = false; + } else if (this.form.child) { + this.form.id = null; + this.form.categoryId = this.form.child; } } }); diff --git a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl index e8448515..86626509 100644 --- a/src/main/webapp/WEB-INF/manager/cms/category/index.ftl +++ b/src/main/webapp/WEB-INF/manager/cms/category/index.ftl @@ -64,6 +64,9 @@