@kohanajs/mod-cms
Advanced tools
Comparing version 9.6.1 to 9.6.2
@@ -5,2 +5,4 @@ # Changelog | ||
### [9.6.2](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.6.1...v9.6.2) (2023-06-01) | ||
### [9.6.1](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.6.0...v9.6.1) (2023-05-25) | ||
@@ -7,0 +9,0 @@ |
const pluralize = require('pluralize'); | ||
const {ControllerMixinDatabase, ControllerMixinView, ORMAdapter, KohanaJS, ORM} = require("kohanajs"); | ||
const {ControllerMixinORMRead} = require("@kohanajs/mixin-orm"); | ||
const {ControllerAdmin, ControllerMixinImport} = require("@kohanajs/mod-admin"); | ||
@@ -21,3 +22,5 @@ const Page = ORM.require('Page'); | ||
this.page_type = this.request.params['page_type']; | ||
this.state.set(ControllerMixinImport.UNIQUE_KEY, 'slug'); | ||
this.state.set(ControllerMixinORMRead.LIST_FILTER, [['AND', 'page_type', 'EQUAL', this.page_type]]) | ||
} | ||
@@ -24,0 +27,0 @@ |
@@ -12,13 +12,12 @@ const path = require('node:path'); | ||
class ControllerAdminUpload extends Controller{ | ||
static mixins = [...Controller.mixins, | ||
ControllerMixinDatabase, | ||
ControllerMixinSession, | ||
ControllerMixinLoginRequire, | ||
ControllerMixinMime, | ||
ControllerMixinView, | ||
ControllerMixinMultipartForm | ||
]; | ||
const Base = Controller.mixin([ | ||
ControllerMixinDatabase, | ||
ControllerMixinSession, | ||
ControllerMixinLoginRequire, | ||
ControllerMixinMime, | ||
ControllerMixinView, | ||
ControllerMixinMultipartForm | ||
]); | ||
class ControllerAdminUpload extends Base{ | ||
constructor(request){ | ||
@@ -25,0 +24,0 @@ super(request); |
{ | ||
"name": "@kohanajs/mod-cms", | ||
"version": "9.6.1", | ||
"version": "9.6.2", | ||
"description": "The CMS module for KohanaJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
155798
1451