X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=bin%2Fmozilla%2Fpe.pl;h=cae9bfc5db27b7af457fa1086457929c14519825;hb=75e721508b508648ffe2454f10cfe29ba8a359dd;hp=6bcb0f53e8576ecc753f466c31d18098292a314b;hpb=8cef58b276ce4005c0e2ada350fecd5d7a103e89;p=kivitendo-erp.git
diff --git a/bin/mozilla/pe.pl b/bin/mozilla/pe.pl
index 6bcb0f53e..cae9bfc5d 100644
--- a/bin/mozilla/pe.pl
+++ b/bin/mozilla/pe.pl
@@ -47,7 +47,7 @@ sub add {
# construct callback
$form->{callback} =
- "$form->{script}?action=add&type=$form->{type}&path=$form->{path}&login=$form->{login}&password=$form->{password}"
+ "$form->{script}?action=add&type=$form->{type}&login=$form->{login}&password=$form->{password}"
unless $form->{callback};
call_sub("form_$form->{type}_header");
@@ -173,7 +173,6 @@ sub search {
-{path}>
{login}>
{password}>
@@ -197,7 +196,7 @@ sub project_report {
PE->projects(\%myconfig, \%$form);
$callback =
- "$form->{script}?action=project_report&type=$form->{type}&path=$form->{path}&login=$form->{login}&password=$form->{password}&status=$form->{status}&active=" .
+ "$form->{script}?action=project_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}&active=" .
E($form->{active});
$href = $callback;
@@ -278,7 +277,7 @@ sub project_report {
|;
$column_data{projectnumber} =
- qq|
{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{projectnumber} | |;
+ qq|{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{projectnumber} | |;
$column_data{description} = qq|$ref->{description} | |;
$column_data{active} =
qq|| .
@@ -308,7 +307,6 @@ sub project_report {
{type}>
-{path}>
{login}>
{password}>
@@ -413,7 +411,6 @@ sub form_project_footer {
-{path}>
{login}>
{password}>
@@ -427,14 +424,17 @@ sub form_project_footer {
. $locale->text('Delete') . qq|">|;
}
-# button for saving history
-print qq|
- {id}
- . qq|); name=history id=history value=|
- . $locale->text('history')
- . qq|>|;
-# /button for saving history
+ if ($form->{id}) {
+ # button for saving history
+ print qq|
+ {id}
+ . qq|); name=history id=history value=|
+ . $locale->text('history')
+ . qq|>|;
+ # /button for saving history
+ }
+
print qq|
@@ -509,7 +509,7 @@ sub partsgroup_report {
PE->partsgroups(\%myconfig, \%$form);
$callback =
- "$form->{script}?action=partsgroup_report&type=$form->{type}&path=$form->{path}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
+ "$form->{script}?action=partsgroup_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
if ($form->{status} eq 'all') {
$option = $locale->text('All');
@@ -570,7 +570,7 @@ sub partsgroup_report {
|;
$column_data{partsgroup} =
- qq| | {script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{partsgroup} | |;
+ qq|{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{partsgroup} | |;
map { print "$column_data{$_}\n" } @column_index;
print "
@@ -594,7 +594,6 @@ sub partsgroup_report {
{type}>
-{path}>
{login}>
{password}>
@@ -662,7 +661,6 @@ sub form_partsgroup_footer {
-{path}>
{login}>
{password}>
@@ -704,7 +702,7 @@ sub pricegroup_report {
PE->pricegroups(\%myconfig, \%$form);
$callback =
- "$form->{script}?action=pricegroup_report&type=$form->{type}&path=$form->{path}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
+ "$form->{script}?action=pricegroup_report&type=$form->{type}&login=$form->{login}&password=$form->{password}&status=$form->{status}";
if ($form->{status} eq 'all') {
$option = $locale->text('All');
@@ -767,7 +765,7 @@ sub pricegroup_report {
|;
$column_data{pricegroup} =
- qq|{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&path=$form->{path}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{pricegroup} | |;
+ qq|{script}?action=edit&type=$form->{type}&status=$form->{status}&id=$ref->{id}&login=$form->{login}&password=$form->{password}&callback=$callback>$ref->{pricegroup} | |;
map { print "$column_data{$_}\n" } @column_index;
@@ -792,7 +790,6 @@ sub pricegroup_report {
{type}>
-{path}>
{login}>
{password}>
@@ -864,7 +861,6 @@ sub form_pricegroup_footer {
-{path}>
{login}>
{password}>