From 4ab9035e11ed3e5d4a6e6afd2f18a531d30c933d Mon Sep 17 00:00:00 2001 From: liumengyi Date: Mon, 5 Feb 2024 14:42:33 +0800 Subject: [PATCH] * Only the Kanban needs to refresh the card. --- module/story/zen.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/module/story/zen.php b/module/story/zen.php index 920420bad8..06d3fc72a8 100644 --- a/module/story/zen.php +++ b/module/story/zen.php @@ -1572,9 +1572,16 @@ class storyZen extends story protected function getResponseInModal(string $message = ''): array|false { if(!isInModal()) return false; - if($this->app->tab != 'execution') return array('result' => 'success', 'message' => $message, 'load' => true, 'closeModal' => true); - return array('result' => 'success', 'message' => $message, 'closeModal' => true, 'callback' => "refreshKanban()"); + $execution = $this->execution->getByID((int)$this->session->execution); + if($this->app->tab == 'execution' and $execution->type == 'kanban') + { + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'callback' => "refreshKanban()", 'closeModal' => true)); + } + else + { + return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'load' => true, 'closeModal' => true)); + } } /**