X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/de79fff47f10297d7df2edf34aa6420de71cde5b..80d8ba7ca7444b575edc4930ee45e46dca66144b:/admin_group_add.php diff --git a/admin_group_add.php b/admin_group_add.php index 21570a96..40d7a874 100644 --- a/admin_group_add.php +++ b/admin_group_add.php @@ -100,13 +100,13 @@ if ($request->isPost()) { 'email' => $cl_manager_email, 'group_name' => $cl_group_name, 'currency' => CURRENCY_DEFAULT, - 'lang' => $cl_lang); + 'lang' => $cl_lang, + 'created_by_id' => $user->id); // Create an instance of ttRegistrator class. import('ttRegistrator'); $registrator = new ttRegistrator($fields, $err); $registrator->register(); - $registrator->setCreatedBy($user->id); // Override created_by to admin account. if ($err->no()) { header('Location: admin_groups.php'); exit(); @@ -117,5 +117,5 @@ $smarty->assign('auth_external', $auth->isPasswordExternal()); $smarty->assign('forms', array($form->getName()=>$form->toArray())); $smarty->assign('onload', 'onLoad="document.groupForm.group_name.focus()"'); $smarty->assign('content_page_name', 'admin_group_add.tpl'); -$smarty->assign('title', $i18n->get('title.create_group')); +$smarty->assign('title', $i18n->get('title.add_group')); $smarty->display('index.tpl');