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/ct.pl
350 350
#  # saving the history
351 351
#  if(!exists $form->{addition}) {
352 352
#    $form->{addition} = "ADD TRANSACTION";
353
#    $form->save_history($form->dbconnect(\%myconfig));
353
#    $form->save_history;
354 354
#  }
355 355
#  # /saving the history
356 356

  
......
384 384
  if(!exists $form->{addition}) {
385 385
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
386 386
    $form->{addition} = "SAVED";
387
    $form->save_history($form->dbconnect(\%myconfig));
387
    $form->save_history;
388 388
  }
389 389
  # /saving the history
390 390
  &add_transaction;
......
404 404
  if(!exists $form->{addition}) {
405 405
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
406 406
    $form->{addition} = "SAVED";
407
    $form->save_history($form->dbconnect(\%myconfig));
407
    $form->save_history;
408 408
  }
409 409
  # /saving the history
410 410
  &add_transaction;
......
429 429
  if(!exists $form->{addition}) {
430 430
    $form->{snumbers} = qq|invnumber_| . $form->{invnumber};
431 431
    $form->{addition} = "SAVED";
432
    $form->save_history($form->dbconnect(\%myconfig));
432
    $form->save_history;
433 433
  }
434 434
  # /saving the history
435 435
  &add_transaction;
......
450 450
  if(!exists $form->{addition}) {
451 451
    $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
452 452
    $form->{addition} = "SAVED";
453
    $form->save_history($form->dbconnect(\%myconfig));
453
    $form->save_history;
454 454
  }
455 455
  # /saving the history
456 456
  &add_transaction;
......
471 471
  if(!exists $form->{addition}) {
472 472
    $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
473 473
    $form->{addition} = "SAVED";
474
    $form->save_history($form->dbconnect(\%myconfig));
474
    $form->save_history;
475 475
  }
476 476
  # /saving the history
477 477
  &add_transaction;
......
497 497
  if(!exists $form->{addition}) {
498 498
    $form->{snumbers} = qq|ordnumber_| . $form->{ordnumber};
499 499
    $form->{addition} = "SAVED";
500
    $form->save_history($form->dbconnect(\%myconfig));
500
    $form->save_history;
501 501
  }
502 502
  # /saving the history
503 503
  &add_transaction;
......
530 530
  if(!exists $form->{addition}) {
531 531
    $form->{snumbers} = ($form->{"db"} eq "customer" ? qq|customernumber_| . $form->{customernumber} : qq|vendornumber_| . $form->{vendornumber});
532 532
    $form->{addition} = "SAVED";
533
    $form->save_history($form->dbconnect(\%myconfig));
533
    $form->save_history;
534 534
  }
535 535
  # /saving the history
536 536
  $form->redirect($locale->text($msg));
......
570 570
  if(!exists $form->{addition}) {
571 571
    $form->{snumbers} = ($form->{"db"} eq "customer" ? qq|customernumber_| . $form->{customernumber} : qq|vendornumber_| . $form->{vendornumber});
572 572
    $form->{addition} = "SAVED";
573
    $form->save_history($form->dbconnect(\%myconfig));
573
    $form->save_history;
574 574
  }
575 575
  # /saving the history
576 576
  &edit;
......
596 596
  if(!exists $form->{addition}) {
597 597
    $form->{snumbers} = ($form->{"db"} eq "customer" ? qq|customernumber_| . $form->{customernumber} : qq|vendornumber_| . $form->{vendornumber});
598 598
    $form->{addition} = "DELETED";
599
    $form->save_history($form->dbconnect(\%myconfig));
599
    $form->save_history;
600 600
  }
601 601
  # /saving the history
602 602
  $form->redirect($locale->text($msg));

Auch abrufbar als: Unified diff