From 01a494ac233009f7bb63c40d3028a5e7b02bb22d Mon Sep 17 00:00:00 2001 From: Maxi Redigonda Date: Wed, 5 Aug 2020 16:34:27 -0300 Subject: [PATCH 1/2] Fixes /system/get-logs by adding getFetchAs --- server/models/Log.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/models/Log.php b/server/models/Log.php index 88eabd62..b21e0a47 100755 --- a/server/models/Log.php +++ b/server/models/Log.php @@ -27,6 +27,13 @@ class Log extends DataStore { ]; } + public static function getFetchAs() { + return [ + 'authorUser' => 'user', + 'authorStaff' => 'staff', + ]; + } + public static function createLog($type, $to, $author = null) { $session = Session::getInstance(); $authorName = ''; From 1c5d15672381fb0196dede1479f42c41e183d13d Mon Sep 17 00:00:00 2001 From: LautaroCesso <59095036+LautaroCesso@users.noreply.github.com> Date: Fri, 7 Aug 2020 17:29:24 -0300 Subject: [PATCH 2/2] Delete non existent step 7 instalation (#862) * Delete non existent step 7 instalation * Add INSTALLATION_COMPLETED_TITLE i18n and delete INSTALLATION_COMPLETED. --- client/src/app/Routes.js | 4 ++-- ...nstall-step-7-completed.js => install-completed.js} | 10 ++++------ ...ll-step-7-completed.scss => install-completed.scss} | 0 client/src/app/install/install-step-1-language.js | 2 +- client/src/app/install/install-step-2-requirements.js | 2 +- client/src/app/install/install-step-3-database.js | 2 +- client/src/app/install/install-step-4-user-system.js | 2 +- client/src/app/install/install-step-5-settings.js | 2 +- client/src/app/install/install-step-6-admin.js | 4 ++-- client/src/data/languages/en.js | 3 +-- 10 files changed, 14 insertions(+), 17 deletions(-) rename client/src/app/install/{install-step-7-completed.js => install-completed.js} (57%) rename client/src/app/install/{install-step-7-completed.scss => install-completed.scss} (100%) diff --git a/client/src/app/Routes.js b/client/src/app/Routes.js index f764f405..088526fd 100644 --- a/client/src/app/Routes.js +++ b/client/src/app/Routes.js @@ -61,7 +61,7 @@ import InstallStep3Database from 'app/install/install-step-3-database'; import InstallStep4UserSystem from 'app/install/install-step-4-user-system'; import InstallStep5Settings from 'app/install/install-step-5-settings'; import InstallStep6Admin from 'app/install/install-step-6-admin'; -import InstallStep7Completed from 'app/install/install-step-7-completed'; +import InstallCompleted from 'app/install/install-completed'; export default ( @@ -98,7 +98,7 @@ export default ( - + diff --git a/client/src/app/install/install-step-7-completed.js b/client/src/app/install/install-completed.js similarity index 57% rename from client/src/app/install/install-step-7-completed.js rename to client/src/app/install/install-completed.js index c0a49475..4fa7b56e 100644 --- a/client/src/app/install/install-step-7-completed.js +++ b/client/src/app/install/install-completed.js @@ -4,10 +4,9 @@ import store from 'app/store'; import ConfigActions from 'actions/config-actions'; import i18n from 'lib-app/i18n'; -import Header from 'core-components/header'; import Message from 'core-components/message'; -class InstallStep7Completed extends React.Component { +class InstallCompleted extends React.Component { componentDidMount() { store.dispatch(ConfigActions.init()); @@ -19,9 +18,8 @@ class InstallStep7Completed extends React.Component { render() { return ( -
-
- +
+ {i18n('INSTALLATION_COMPLETED_DESCRIPTION')}
@@ -29,4 +27,4 @@ class InstallStep7Completed extends React.Component { } } -export default InstallStep7Completed; \ No newline at end of file +export default InstallCompleted; diff --git a/client/src/app/install/install-step-7-completed.scss b/client/src/app/install/install-completed.scss similarity index 100% rename from client/src/app/install/install-step-7-completed.scss rename to client/src/app/install/install-completed.scss diff --git a/client/src/app/install/install-step-1-language.js b/client/src/app/install/install-step-1-language.js index 240b3d1b..e94fda6d 100644 --- a/client/src/app/install/install-step-1-language.js +++ b/client/src/app/install/install-step-1-language.js @@ -14,7 +14,7 @@ class InstallStep1Language extends React.Component { render() { return (
-
+