* Only the Kanban needs to refresh the card.

This commit is contained in:
liumengyi
2024-02-05 17:11:45 +08:00
committed by caoyanyi
parent 2ad3a039a0
commit 4ab9035e11
+9 -2
View File
@@ -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));
}
}
/**