Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 62726dfd

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

  • ID 62726dfdf4f763efa65c25fcfe8658d98649c8a8
  • Vorgänger b8376fba
  • Nachfolger 12727b13

Drafts: Ausgelagert in Controller

Unterschiede anzeigen:

bin/mozilla/ap.pl
46 46

  
47 47
require "bin/mozilla/arap.pl";
48 48
require "bin/mozilla/common.pl";
49
require "bin/mozilla/drafts.pl";
50 49
require "bin/mozilla/reportgenerator.pl";
51 50

  
52 51
use strict;
......
91 90

  
92 91
  $main::auth->assert('general_ledger');
93 92

  
94
  return $main::lxdebug->leave_sub() if (load_draft_maybe());
95

  
96 93
  $form->{title} = "Add";
97 94

  
98
  $form->{callback} = "ap.pl?action=add&DONT_LOAD_DRAFT=1" unless $form->{callback};
95
  $form->{callback} = "ap.pl?action=add" unless $form->{callback};
99 96

  
100 97
  AP->get_transdate(\%myconfig, $form);
101 98
  $form->{initial_transdate} = $form->{transdate};
......
326 323
  $form->{javascript} .= qq|<script type="text/javascript" src="js/common.js"></script>|;
327 324
  $form->{javascript} .= qq|<script type="text/javascript" src="js/show_vc_details.js"></script>|;
328 325
  $form->{javascript} .= qq|<script type="text/javascript" src="js/follow_up.js"></script>|;
326
  $form->{javascript} .= qq|<script type="text/javascript" src="js/kivi.Draft.js"></script>|;
329 327

  
330 328
  $form->header();
331 329

  
......
714 712
      $form->save_history;
715 713
    }
716 714
    # /saving the history
717
    remove_draft() if $form->{remove_draft};
718 715
    # Dieser Text wird niemals ausgegeben: Probleme beim redirect?
719 716
    $form->redirect($locale->text('Transaction posted!')) unless $inline;
720 717
  } else {

Auch abrufbar als: Unified diff