Skip to content
Snippets Groups Projects
Unverified Commit ea4e39d7 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

do not pass unsupported mot enums to backends

parent 79832d76
No related branches found
No related tags found
No related merge requests found
......@@ -40,12 +40,16 @@ sub load_instance {
}
}
my $skipped = 0;
for my $bit ( 0 .. 15 ) {
if ( my $p = $bitmask_to_product{ 2**$bit } ) {
for ( 1 .. $skipped ) {
push( @{ $ret{productbits} }, [ "_", undef ] );
}
push( @{ $ret{productbits} }, [ $p->{id}, $p->{name} ] );
}
else {
push( @{ $ret{productbits} }, [ "_", undef ] );
$skipped += 1;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment