* [bug#63250,done,0.1h,0h] Adjust to cleanInt().

This commit is contained in:
wangyuting
2025-06-11 09:07:34 +00:00
parent 1d79c71e14
commit a0fcbfe6af
+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;