summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-17 23:22:02 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2008-09-17 23:22:02 +0000
commit9e2e27bda4a44c0303cea5bc774d566e2e9f40df (patch)
tree3d991af2d844ed9940cf78085252454e8c7f5419 /scripts
parentc4ff29592269fdc248c0a27736dcad1227c3a998 (diff)
Further fixes to Reconciliation, the new Admin interface, and a small change to Company.sql
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2327 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/admin.pl15
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/admin.pl b/scripts/admin.pl
index 9db47f88..7ba5a40e 100644
--- a/scripts/admin.pl
+++ b/scripts/admin.pl
@@ -63,9 +63,9 @@ sub edit_user {
my $user = LedgerSMB::DBObject::User->new(base=>$request, copy=>'user_id');
$user->get($request->{user_id});
-
- my $all_roles = $admin->get_roles();
+ my @all_roles = $admin->get_roles();
+
my $template = LedgerSMB::Template->new(
user => $user,
template => 'Admin/edit_user',
@@ -82,16 +82,21 @@ sub edit_user {
{
user=>$admin->get_entire_user(),
roles=>$all_roles,
- user_roles=>$admin->get_user_roles($request->{username})
+ user_roles=>$admin->get_user_roles($request->{username}),
+ salutations=>$admin->get_salutations(),
}
);
}
else {
+# print STDERR Dumper($user);
+# print STDERR Dumper(@all_roles);
+# print STDERR Dumper($user->{roles});
$template->render(
{
user=>$user,
- roles=>$all_roles,
- user_roles=>$admin->get_user_roles($request->{user})
+ roles=>@all_roles,
+ user_roles=>$user->{roles},
+ salutations=>$admin->get_salutations(),
}
);
}