projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Mandantennamen in allen MenĂ¼-Headern anzeigen
[kivitendo-erp.git]
/
bin
/
mozilla
/
am.pl
diff --git
a/bin/mozilla/am.pl
b/bin/mozilla/am.pl
index
ebe7ed1
..
5677644
100644
(file)
--- a/
bin/mozilla/am.pl
+++ b/
bin/mozilla/am.pl
@@
-42,7
+42,7
@@
use SL::User;
use SL::USTVA;
use SL::Iconv;
use SL::TODO;
use SL::USTVA;
use SL::Iconv;
use SL::TODO;
-use SL::Printer;
+use SL::
DB::
Printer;
use CGI;
require "bin/mozilla/common.pl";
use CGI;
require "bin/mozilla/common.pl";
@@
-1059,7
+1059,7
@@
sub config {
{ 'name' => $locale->text('Queue'), 'value' => 'queue', 'selected' => $selected{queue}, },
];
{ 'name' => $locale->text('Queue'), 'value' => 'queue', 'selected' => $selected{queue}, },
];
- $form->{PRINTERS} =
[ SL::Printer->all_printers(%::myconfig) ]
;
+ $form->{PRINTERS} =
SL::DB::Manager::Printer->get_all_sorted
;
my %countrycodes = User->country_codes;
my %countrycodes = User->country_codes;
@@
-1104,7
+1104,7
@@
sub save_preferences {
TODO->save_user_config('login' => $form->{login}, %{ $form->{todo_cfg} || { } });
TODO->save_user_config('login' => $form->{login}, %{ $form->{todo_cfg} || { } });
- if (AM->save_preferences(
\%myconfig,
$form)) {
+ if (AM->save_preferences($form)) {
if ($::auth->can_change_password()
&& defined $form->{new_password}
&& ($form->{new_password} ne '********')) {
if ($::auth->can_change_password()
&& defined $form->{new_password}
&& ($form->{new_password} ne '********')) {
@@
-1116,10
+1116,6
@@
sub save_preferences {
}
$::auth->change_password($form->{login}, $form->{new_password});
}
$::auth->change_password($form->{login}, $form->{new_password});
-
- $form->{password} = $form->{new_password};
- $::auth->set_session_value('password', $form->{password});
- $::auth->create_or_refresh_session();
}
$form->redirect($locale->text('Preferences saved!'));
}
$form->redirect($locale->text('Preferences saved!'));