avoid mixing device and port custom_field fields

This commit is contained in:
Oliver Gorwits
2023-07-19 18:11:12 +01:00
parent 0378e01af7
commit 1067b82dc6

View File

@@ -343,6 +343,7 @@ sub jq_insert {
$row = schema(vars->{'tenant'})->resultset('Device')
->find($spec->{device});
}
undef $row unless $row->can($spec->{action});
die 'failed to find row for custom field update' unless $row;
$spec->{action} =~ s/^cf_//;