);
__PACKAGE__->run_before('setup');
+__PACKAGE__->run_before('set_default_filter_args', only => [ qw(list) ]);
my %sort_columns = (
customer => t8('Customer'),
->jstree->open_node( '#tree', "#tb-${front_back}");
}
+sub set_default_filter_args {
+ my ($self) = @_;
+
+ if (!$::form->{filter}) {
+ $::form->{filter} = {
+ status_id => [ map { $_->{id} } grep { $_->name ne 'done' } @{ $self->statuses } ],
+ };
+ }
+
+ return 1;
+}
+
sub render_pasted_section {
my ($self, $item, $parent_id) = @_;
<tr>
<th align="right">[% LxERP.t8("Requirement Spec Status") %]</th>
- <td>[% L.select_tag('filter.status_id', SELF.statuses, default=filter.status_id, title_key="description", with_empty=1) %]</td>
+ <td>[% L.select_tag('filter.status_id[]', SELF.statuses, default=filter.status_id_, title_key="description", multiple=1) %][%# NOTE: the trailing '_' is NOT a mistake -- look at SL::Controller::Helper::Filtered for the explanation! %]</td>
</tr>
<tr>