From 69debf9c110b863ed7597ae6b542adabf0a8d9d2 Mon Sep 17 00:00:00 2001 From: wangzemei Date: Thu, 29 Sep 2022 17:52:23 +0800 Subject: [PATCH] * Fix bug 28231 --- module/execution/model.php | 2 +- module/kanban/model.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/execution/model.php b/module/execution/model.php index e0dfa79a68..c8eb61f0ed 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -1139,7 +1139,7 @@ class executionModel extends model ->batchCheck($this->config->kanban->edit->requiredFields, 'notempty') ->checkIF(!$execution->fluidBoard, 'colWidth', 'gt', 0) ->batchCheckIF($execution->fluidBoard, 'minColWidth,maxColWidth', 'gt', 0) - ->checkIF($execution->minColWidth and $execution->maxColWidth and $execution->fluidBoard, 'maxColWidth', 'ge', $kanban->minColWidth) + ->checkIF($execution->minColWidth and $execution->maxColWidth and $execution->fluidBoard, 'maxColWidth', 'gt', $execution->minColWidth) ->where('id')->eq((int)$executionID) ->exec(); } diff --git a/module/kanban/model.php b/module/kanban/model.php index 1a96da46e5..cc522f4a0c 100755 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -2239,7 +2239,7 @@ class kanbanModel extends model ->batchCheck($this->config->kanban->create->requiredFields, 'notempty') ->checkIF(!$kanban->fluidBoard, 'colWidth', 'gt', 0) ->batchCheckIF($kanban->fluidBoard, 'minColWidth,maxColWidth', 'gt', 0) - ->checkIF($kanban->minColWidth and $kanban->maxColWidth and $kanban->fluidBoard, 'maxColWidth', 'ge', $kanban->minColWidth) + ->checkIF($kanban->minColWidth and $kanban->maxColWidth and $kanban->fluidBoard, 'maxColWidth', 'gt', $kanban->minColWidth) ->check('name', 'unique', "space = {$kanban->space}") ->exec(); @@ -2346,7 +2346,7 @@ class kanbanModel extends model ->batchCheck($this->config->kanban->edit->requiredFields, 'notempty') ->checkIF(!$kanban->fluidBoard, 'colWidth', 'gt', 0) ->batchCheckIF($kanban->fluidBoard, 'minColWidth,maxColWidth', 'gt', 0) - ->checkIF($kanban->minColWidth and $kanban->maxColWidth and $kanban->fluidBoard, 'maxColWidth', 'ge', $kanban->minColWidth) + ->checkIF($kanban->minColWidth and $kanban->maxColWidth and $kanban->fluidBoard, 'maxColWidth', 'gt', $kanban->minColWidth) ->where('id')->eq($kanbanID) ->exec();