Merge branch ztflow-wangyuting-dev/bug-63250#wangyuting of zentao/zentaopms (#9423)

This commit is contained in:
刘刚
2025-06-11 17:15:42 +08:00
committed by Gitfox
+1 -1
View File
@@ -1968,7 +1968,7 @@ class treeModel extends model
*/
public function update(int $moduleID, string $type = ''): bool
{
$module = fixer::input('post')->setIF(empty($_POST['branch']), 'branch', 0)->get();
$module = fixer::input('post')->cleanInt('branch')->get();
$self = $this->getById($moduleID);
$changes = common::createChanges($self, $module);
if(!isset($_POST['branch'])) $module->branch = $self->branch;