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