From 8a7bb125863d8668a5da7d93034edf4f3b8d5f0f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sun, 22 Jan 2017 21:08:46 +0100 Subject: [PATCH] Fixing json serialization and reporter --- Controller.php | 1 + Models/AccountMapper.php | 4 ++-- Theme/Backend/accounts-create.tpl.php | 2 +- Theme/Backend/accounts-single.tpl.php | 6 +++--- Theme/backend/accounts-create.tpl.php | 2 +- Theme/backend/accounts-single.tpl.php | 6 +++--- 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/Controller.php b/Controller.php index 734f0b4..fe4f3f1 100644 --- a/Controller.php +++ b/Controller.php @@ -389,6 +389,7 @@ class Controller extends ModuleAbstract implements WebInterface $account->setName2($request->getData('name2')); $account->setName3($request->getData('name3')); $account->setEmail($request->getData('email')); + $account->generatePassword($request->getData('password')); AccountMapper::create($account); diff --git a/Models/AccountMapper.php b/Models/AccountMapper.php index 1e87413..35054d0 100644 --- a/Models/AccountMapper.php +++ b/Models/AccountMapper.php @@ -108,9 +108,9 @@ class AccountMapper extends DataMapperAbstract return false; } - } - + return $objId; + } /** * Get object. diff --git a/Theme/Backend/accounts-create.tpl.php b/Theme/Backend/accounts-create.tpl.php index f64650d..716d624 100644 --- a/Theme/Backend/accounts-create.tpl.php +++ b/Theme/Backend/accounts-create.tpl.php @@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?> - + diff --git a/Theme/Backend/accounts-single.tpl.php b/Theme/Backend/accounts-single.tpl.php index f9acb48..1f5fdc0 100644 --- a/Theme/Backend/accounts-single.tpl.php +++ b/Theme/Backend/accounts-single.tpl.php @@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
-
+
-
+
@@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?>
-
+
diff --git a/Theme/backend/accounts-create.tpl.php b/Theme/backend/accounts-create.tpl.php index f64650d..716d624 100644 --- a/Theme/backend/accounts-create.tpl.php +++ b/Theme/backend/accounts-create.tpl.php @@ -44,7 +44,7 @@ echo $this->getData('nav')->render(); ?> - + diff --git a/Theme/backend/accounts-single.tpl.php b/Theme/backend/accounts-single.tpl.php index f9acb48..1f5fdc0 100644 --- a/Theme/backend/accounts-single.tpl.php +++ b/Theme/backend/accounts-single.tpl.php @@ -26,7 +26,7 @@ echo $this->getData('nav')->render(); ?>
-
+
-
+
@@ -52,7 +52,7 @@ echo $this->getData('nav')->render(); ?>
-
+