From 6daabed20261c702a5792060ef33348a31711e19 Mon Sep 17 00:00:00 2001 From: Bernat Date: Wed, 28 Aug 2019 12:17:06 +0200 Subject: [PATCH] #1645 first part, delete hasVisible --- modules/item/back/methods/item/filter.js | 5 ----- modules/item/front/index/index.js | 3 --- 2 files changed, 8 deletions(-) diff --git a/modules/item/back/methods/item/filter.js b/modules/item/back/methods/item/filter.js index 325df3302..4e390227b 100644 --- a/modules/item/back/methods/item/filter.js +++ b/modules/item/back/methods/item/filter.js @@ -38,11 +38,6 @@ module.exports = Self => { type: 'Integer', description: 'Type id', http: {source: 'query'} - }, { - arg: 'hasVisible', - type: 'Boolean', - description: 'Whether the the item has visible or not', - http: {source: 'query'} }, { arg: 'isActive', type: 'Boolean', diff --git a/modules/item/front/index/index.js b/modules/item/front/index/index.js index d53e2998b..e01e56c17 100644 --- a/modules/item/front/index/index.js +++ b/modules/item/front/index/index.js @@ -38,9 +38,6 @@ class Controller { } onSearch(params) { - if (params && params.hasVisible === undefined && params.isActive === undefined) - Object.assign(params, {hasVisible: true, isActive: true}); - if (params) this.$.model.applyFilter(null, params); else