Revision 36703a86
Von Bernd Blessmann vor etwa 10 Jahren hinzugefügt
SL/PE.pm | ||
---|---|---|
59 | 59 |
$where .= |
60 | 60 |
qq| AND id NOT IN | . |
61 | 61 |
qq| (SELECT DISTINCT partsgroup_id FROM parts | . |
62 |
qq| WHERE NOT partsgroup_id ISNULL | . |
|
63 |
qq| UNION | . |
|
64 |
qq| SELECT DISTINCT partsgroup_id FROM custom_variable_config_partsgroups | . |
|
62 | 65 |
qq| WHERE NOT partsgroup_id ISNULL) |; |
63 | 66 |
} |
64 | 67 |
|
... | ... | |
129 | 132 |
|
130 | 133 |
$dbh->disconnect; |
131 | 134 |
|
135 |
# also not orphaned if partsgroup is selected for a cvar filter |
|
136 |
if ($form->{orphaned}) { |
|
137 |
my $cvar_count = scalar( @{ SL::DB::PartsGroup->new(id => $form->{id})->custom_variable_configs } ); |
|
138 |
$form->{orphaned} = !$cvar_count; |
|
139 |
} |
|
140 |
|
|
132 | 141 |
$main::lxdebug->leave_sub(); |
133 | 142 |
} |
134 | 143 |
|
Auch abrufbar als: Unified diff
Warengruppen-Filter f. CVars bei Waren
cherry-pick aus Kundenprojekt und Anpassungen an unstable (hauptsächlich
Umstellung auf Controller)
Conflicts: