* Fix bug#50029.

This commit is contained in:
xieqiyu
2024-05-24 10:54:20 +08:00
parent 1b4c7fcb3d
commit 102d9cbef1
+1 -1
View File
@@ -1328,7 +1328,7 @@ class story extends control
$this->story->linkStories($storyID, $this->post->stories);
if(dao::isError()) return $this->send(array('result' => 'fail', 'message' => dao::getError()));
return $this->send(array('result' => 'success', 'callback' => "const modal = zui.Modal.query('.modal-dialog[data-auto-load=\"story:$storyID\"]'); if(modal) modal.render(); else loadCurrentPage();", 'closeModal' => true));
return $this->send(array('result' => 'success', 'callback' => "const modal = zui.Modal.query('.modal-dialog[data-auto-load=\"story:$storyID\"]'); if(typeof(modal) !== 'undefined') modal.render(); else loadCurrentPage();", 'closeModal' => true));
}
/* Get story, product, products, and queryID. */