DNS zone import as user - wrong sys_groupid in dns_rr and dns_soa

Version 3.2.9

Zone import script imports with sys_groupid 0 if a user do this (with admin is correct) Problem with groupid 0 is the api call dns_zone_get_by_user doesn't return this zone even if sys_userid is the user. sql from the api call

SELECT id, origin FROM dns_soa d INNER JOIN sys_user s on(d.sys_groupid = s.default_group) WHERE client_id = ? AND server_id =

if i change dns_import.php:64 than it works for me (but not really testet)

// import variables
$template_id = (isset($_POST['template_id']))?$app->functions->intval($_POST['template_id']):0;
//$sys_groupid = (isset($_POST['client_group_id']))?$app->functions->intval($_POST['client_group_id']):0;
if (isset($_POST['client_group_id'])) {
        $sys_groupid = $app->functions->intval($_POST['client_group_id']);
} else {
        $sys_groupid = $_SESSION["s"]["user"]["default_group"];
}