Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a590a651

Von Sven Schöling vor etwa 14 Jahren hinzugefügt

  • ID a590a6518025280c2d6e76c87641764ca6198521
  • Vorgänger 9e2386ab
  • Nachfolger 6aa467fa

save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.

Unterschiede anzeigen:

bin/mozilla/ap.pl
1081 1081
    if(!exists $form->{addition} && $form->{id} ne "") {
1082 1082
      $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
1083 1083
      $form->{addition} = "POSTED";
1084
      $form->save_history($form->dbconnect(\%myconfig));
1084
      $form->save_history;
1085 1085
    }
1086 1086
    # /saving the history
1087 1087
    remove_draft() if $form->{remove_draft};
......
1107 1107
  if(!exists $form->{addition} && $form->{id} ne "") {
1108 1108
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
1109 1109
    $form->{addition} = "POSTED AS NEW";
1110
    $form->save_history($form->dbconnect(\%myconfig));
1110
    $form->save_history;
1111 1111
  }
1112 1112
  # /saving the history
1113 1113
  &post;
......
1190 1190
    if(!exists $form->{addition}) {
1191 1191
      $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
1192 1192
      $form->{addition} = "DELETED";
1193
      $form->save_history($form->dbconnect(\%myconfig));
1193
      $form->save_history;
1194 1194
    }
1195 1195
    # /saving the history
1196 1196
    $form->redirect($locale->text('Transaction deleted!'));
......
1433 1433
  if(!exists $form->{addition} && $form->{id} ne "") {
1434 1434
    $form->{snumbers} = "ordnumber_$form->{ordnumber}";
1435 1435
    $form->{addition} = "STORNO";
1436
    $form->save_history($form->dbconnect(\%myconfig));
1436
    $form->save_history;
1437 1437
  }
1438 1438
  # /saving the history
1439 1439

  

Auch abrufbar als: Unified diff