* zin: fix project/createGuide not work on open from quick add menu in compatible mode.

This commit is contained in:
sunhao
2023-11-22 12:36:25 +08:00
parent 444e5106fd
commit 5a0a152b59
+4 -1
View File
@@ -295,7 +295,8 @@ class header extends wg
/* Initialize the default values. */
$showCreateList = $needPrintDivider = false;
$modalClass = (isset($config->zin->mode) && $config->zin->mode == 'compatible') ? 'open-in-parent' : null;
$isCompatible = isset($config->zin->mode) && $config->zin->mode == 'compatible';
$modalClass = $isCompatible ? 'open-in-parent' : null;
/* Get default product id. */
$productID = isset($_SESSION['product']) ? $_SESSION['product'] : 0;
@@ -367,6 +368,8 @@ class header extends wg
$createMethod = 'createGuide';
$item['innerClass'] = $modalClass;
$item['data-toggle'] = 'modal';
if($isCompatible) $item['data-type'] = 'ajax';
}
else
{