X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fdrafts.pl;h=18af531f2246dc4b4ef58c1775401ff5199aeaea;hb=bd23cc3e64900f14317c147aa52a8b1a7633e2a4;hp=c10d91afe32871c1262dc807b7449b3ea13c48c9;hpb=08df38dfcaad6fef28988003da9212ef47f75c84;p=kivitendo-erp.git diff --git a/bin/mozilla/drafts.pl b/bin/mozilla/drafts.pl index c10d91afe..18af531f2 100644 --- a/bin/mozilla/drafts.pl +++ b/bin/mozilla/drafts.pl @@ -17,6 +17,7 @@ sub save_draft { if (!$form->{draft_id} && !$form->{draft_description}) { restore_form($form->{SAVED_FORM}, 1) if ($form->{SAVED_FORM}); delete($form->{SAVED_FORM}); + $form->{remove_draft} = 1; $form->{SAVED_FORM} = save_form(); $form->header(); @@ -87,7 +88,7 @@ sub dont_load_draft { delete($form->{action}); $form->{DONT_LOAD_DRAFT} = 1; - &{ $draft_nextsub }(); + call_sub($draft_nextsub); $lxdebug->leave_sub(); }