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
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}