Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a590a651

Von Sven Schöling vor mehr als 14 Jahren hinzugefügt

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

save_history sollte NICHT jedesmal eine neue datenbankverbindung aufmachen.

Unterschiede anzeigen:

bin/mozilla/ir.pl
552 552
  if(!exists $form->{addition} && $form->{id} ne "") {
553 553
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
554 554
    $form->{addition} = "CANCELED";
555
    $form->save_history($form->dbconnect(\%myconfig));
555
    $form->save_history;
556 556
  }
557 557
  # /saving the history
558 558

  
......
618 618
      $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
619 619
      $form->{addition} = "PAYMENT POSTED";
620 620
      $form->{what_done} = $form->{currency} . qq| | . $form->{paid} . qq| | . $locale->text("POSTED");
621
      $form->save_history($form->dbconnect(\%myconfig));
621
      $form->save_history;
622 622
      # /saving the history
623 623
    }
624 624

  
......
718 718
      $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
719 719
      $form->{addition} = "POSTED";
720 720
      #$form->{what_done} = $locale->text("Rechnungsnummer") . qq| | . $form->{invnumber};
721
      $form->save_history($form->dbconnect(\%myconfig));
721
      $form->save_history;
722 722
    }
723 723
    # /saving the history
724 724
    remove_draft() if $form->{remove_draft};
......
784 784
    if(!exists $form->{addition}) {
785 785
      $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
786 786
      $form->{addition} = "DELETED";
787
      $form->save_history($form->dbconnect(\%myconfig));
787
      $form->save_history;
788 788
    }
789 789
    # /saving the history
790 790
    $form->redirect($locale->text('Invoice deleted!'));

Auch abrufbar als: Unified diff