projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Verkaufsrechnung als Vorlage verwenden, funktioniert nicht in abgeschlossenen Perioden
[kivitendo-erp.git]
/
bin
/
mozilla
/
amtemplates.pl
diff --git
a/bin/mozilla/amtemplates.pl
b/bin/mozilla/amtemplates.pl
index
1545f65
..
9f21e22
100644
(file)
--- a/
bin/mozilla/amtemplates.pl
+++ b/
bin/mozilla/amtemplates.pl
@@
-63,7
+63,7
@@
sub display_template {
my $form = $main::form;
my $form = $main::form;
- $main::auth->assert('
config
');
+ $main::auth->assert('
admin
');
$form->{edit} = 0;
display_template_form();
$form->{edit} = 0;
display_template_form();
@@
-76,7
+76,7
@@
sub edit_template {
my $form = $main::form;
my $form = $main::form;
- $main::auth->assert('
config
');
+ $main::auth->assert('
admin
');
$form->{edit} = 1;
display_template_form();
$form->{edit} = 1;
display_template_form();
@@
-91,7
+91,7
@@
sub save_template {
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
- $main::auth->assert('
config
');
+ $main::auth->assert('
admin
');
$form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet");
$form->isblank("formname", $locale->text("You're not editing a file.")) unless ($form->{type} eq "stylesheet");
@@
-113,7
+113,7
@@
sub display_template_form {
my %myconfig = %main::myconfig;
my $locale = $main::locale;
my %myconfig = %main::myconfig;
my $locale = $main::locale;
- $main::auth->assert('
config
');
+ $main::auth->assert('
admin
');
if ($form->{"formname"} =~ m|\.\.| || $form->{"formname"} =~ m|^/|) {
$form->{"formname"} =~ s|.*/||;
if ($form->{"formname"} =~ m|\.\.| || $form->{"formname"} =~ m|^/|) {
$form->{"formname"} =~ s|.*/||;
@@
-272,7
+272,7
@@
sub display_template_form {
$options{"CAN_EDIT"} = $form->{"edit"};
if ($form->{edit}) {
$options{"CAN_EDIT"} = $form->{"edit"};
if ($form->{edit}) {
- $
form->{fokus} = "Form.content"
;
+ $
::request->{layout}->focus("#edit_content")
;
} else {
$options{"content"} = "\n\n" if (!$options{"content"});
} else {
$options{"content"} = "\n\n" if (!$options{"content"});