projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8fbb71e
)
"Kunden/Lieferanten Erfassen"-Button führt zum Controller
author
Thomas Heck
<theck@linet-services.de>
Mon, 2 Dec 2013 15:57:15 +0000
(16:57 +0100)
committer
Thomas Heck
<theck@linet-services.de>
Mon, 2 Dec 2013 16:03:08 +0000
(17:03 +0100)
bin/mozilla/ct.pl
patch
|
blob
|
history
diff --git
a/bin/mozilla/ct.pl
b/bin/mozilla/ct.pl
index
513a7ff
..
f3a90ae
100644
(file)
--- a/
bin/mozilla/ct.pl
+++ b/
bin/mozilla/ct.pl
@@
-54,6
+54,7
@@
use SL::DB::Business;
use SL::DB::Default;
use SL::Helper::Flash;
use SL::ReportGenerator;
use SL::DB::Default;
use SL::Helper::Flash;
use SL::ReportGenerator;
+use SL::MoreCommon qw(uri_encode);
require "bin/mozilla/common.pl";
require "bin/mozilla/reportgenerator.pl";
require "bin/mozilla/common.pl";
require "bin/mozilla/reportgenerator.pl";
@@
-66,18
+67,13
@@
use strict;
sub add {
$main::lxdebug->enter_sub();
sub add {
$main::lxdebug->enter_sub();
- $main::auth->assert('customer_vendor_edit');
-
- my $form = $main::form;
- my %myconfig = %main::myconfig;
-
- $form->{title} = "Add";
- $form->{callback} = "$form->{script}?action=add&db=$form->{db}" unless $form->{callback};
+ my $url = 'controller.pl?action=CustomerVendor/add&db='. ($::form->{db} eq 'vendor' ? 'vendor' : 'customer');
- CT->populate_drop_down_boxes(\%myconfig, \%$form);
+ if ( $::form->{callback} ) {
+ $url .= '&callback='. uri_encode($::form->{callback});
+ }
- &form_header;
- &form_footer;
+ print $::form->redirect_header($url);
$main::lxdebug->leave_sub();
}
$main::lxdebug->leave_sub();
}