* Fix an error of the product list.

This commit is contained in:
tianshujie
2023-11-10 09:38:00 +08:00
parent fb5875790e
commit 2ab80164da
+1 -1
View File
@@ -1010,7 +1010,7 @@ class treeModel extends model
* @access public
* @return object|false
*/
public function build20Tree(object $module, string $type, int|string $parent = 0, array $userFunc = array(), array|string $extra = array(), string $branch = 'all'): object|false
public function build20Tree(object $module, string $type, $parent = 0, array $userFunc = array(), $extra = array(), string $branch = 'all'): object|false
{
/* Add for task #1945. check the module has case or no. */
if((isset($extra['rootID']) and isset($extra['branch']) and $branch === 'null') or ($type == 'case' and is_numeric($extra)))