diff --git a/module/tree/model.php b/module/tree/model.php index 20f8917b2d..ff4f3f339a 100644 --- a/module/tree/model.php +++ b/module/tree/model.php @@ -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;