X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/dae2afe84c22b0043ea49fba5bc568675c6957c6..4486e3bc8eb00c37cf8029e663eb94b4b9c5346a:/bin/mozilla/projects.pl diff --git a/bin/mozilla/projects.pl b/bin/mozilla/projects.pl index 46ce822fb..bda1c6d96 100644 --- a/bin/mozilla/projects.pl +++ b/bin/mozilla/projects.pl @@ -92,7 +92,7 @@ sub search { $form->{CUSTOM_VARIABLES_INCLUSION_CODE}) = CVar->render_search_options('variables' => $form->{CUSTOM_VARIABLES}, 'include_prefix' => 'l_', 'include_value' => 'Y'); - $form->{fokus} = 'getElementById("projectnumber")'; + $::request->{layout}->focus('#projectnumber'); $form->header(); print $form->parse_html_template('projects/search'); @@ -121,6 +121,7 @@ sub project_report { my @columns = qw(projectnumber description active); my @includeable_custom_variables = grep { $_->{includeable} } @{ $cvar_configs }; + my @searchable_custom_variables = grep { $_->{searchable} } @{ $cvar_configs }; my %column_defs_cvars = (); foreach (@includeable_custom_variables) { $column_defs_cvars{"cvar_$_->{name}"} = { @@ -132,7 +133,11 @@ sub project_report { push @columns, map { "cvar_$_->{name}" } @includeable_custom_variables; - my @hidden_vars = ('filter', map { ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables); + my @hidden_vars = ( + 'filter', + map({ ('cvar_'. $_->{name} , 'l_cvar_'. $_->{name}) } @includeable_custom_variables), + map({'cvar_'. $_->{name} .'_qtyop'} grep({$_->{type} eq 'number'} @searchable_custom_variables)), + ); my $href = build_std_url('action=project_report', @hidden_vars);