Revision a261c693
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
description => $_->description,
|
||
type => $_->type,
|
||
unit => $_->unit,
|
||
cvars => { map { ($_->config->name => { value => $_->value_as_text, is_valid => $_->is_valid }) } @{ $_->cvars_by_config } },
|
||
}
|
||
} @{ $self->parts }; # neato: if exact match triggers we don't even need the init_parts
|
||
|
SL/DB/CustomVariable.pm | ||
---|---|---|
require SL::DB::CustomVariableValidity;
|
||
|
||
my $query = [config_id => $self->config_id, trans_id => $self->trans_id];
|
||
return SL::DB::Manager::CustomVariableValidity->get_all_count(query => $query) == 0;
|
||
return (SL::DB::Manager::CustomVariableValidity->get_all_count(query => $query) == 0) ? 1 : 0;
|
||
}
|
||
|
||
1;
|
Auch abrufbar als: Unified diff
Partpicker: Benutzerdefinierte Variablen mitschicken