X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fprojects.pl;h=16d5e45f752aa1aad71830c4befedc4ce806222a;hb=8a2d9daf01083e1271cf6118591bb2c242734261;hp=d340ddb7fe353d8bb1cc6cbcfb62de32afe5b456;hpb=1b0c7d3fc874fd0bfa6556d1b181df3c4a16604c;p=kivitendo-erp.git diff --git a/bin/mozilla/projects.pl b/bin/mozilla/projects.pl index d340ddb7f..16d5e45f7 100644 --- a/bin/mozilla/projects.pl +++ b/bin/mozilla/projects.pl @@ -92,6 +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")'; $form->header(); print $form->parse_html_template('projects/search'); @@ -168,6 +169,7 @@ sub project_report { 'attachment_basename' => $locale->text('project_list') . strftime('_%Y%m%d', localtime time), ); $report->set_options_from_form(); + $locale->set_numberformat_wo_thousands_separator(\%myconfig) if lc($report->{options}->{output_format}) eq 'csv'; CVar->add_custom_variables_to_report('module' => 'Projects', 'trans_id_field' => 'id', @@ -206,7 +208,7 @@ sub display_project_form { $form->{title} = $form->{project}->{id} ? $locale->text("Edit Project") : $locale->text("Add Project"); $form->{CUSTOM_VARIABLES} = CVar->get_custom_variables('module' => 'Projects', 'trans_id' => $form->{project}->{id}); - $main::lxdebug->dump(0, "cv", $form->{CUSTOM_VARIABLES}); +# $main::lxdebug->dump(0, "cv", $form->{CUSTOM_VARIABLES}); CVar->render_inputs('variables' => $form->{CUSTOM_VARIABLES}) if (scalar @{ $form->{CUSTOM_VARIABLES} }); $form->header(); @@ -234,8 +236,8 @@ sub save { if(!exists $form->{addition} && $project->{id} ne "") { $form->{id} = $project->{id}; $form->{snumbers} = qq|projectnumber_| . $project->{projectnumber}; - $form->{addition} = "SAVED"; - $form->save_history($form->dbconnect(\%myconfig)); + $form->{addition} = "SAVED"; + $form->save_history; } # /saving the history @@ -277,8 +279,8 @@ sub delete { # saving the history if(!exists $form->{addition}) { $form->{snumbers} = qq|projectnumber_| . $project->{projectnumber}; - $form->{addition} = "DELETED"; - $form->save_history($form->dbconnect(\%myconfig)); + $form->{addition} = "DELETED"; + $form->save_history; } # /saving the history