diff --git a/lam/HISTORY b/lam/HISTORY index cabe7f1e6..d98e5c77e 100644 --- a/lam/HISTORY +++ b/lam/HISTORY @@ -7,6 +7,7 @@ June 2024 8.8 - LAM Pro: -> Request access: request data can be imported and exported as part of configuration -> Request access: added $$approveLink$$ and $$rejectLink$$ in approval mails + -> Request access: added history (283) 16.03.2024 8.7 diff --git a/lam/lib/persistence.inc b/lam/lib/persistence.inc index d24cc37f3..721ea182e 100644 --- a/lam/lib/persistence.inc +++ b/lam/lib/persistence.inc @@ -18,7 +18,7 @@ use function LAM\PDF\getPDFStructures; /* This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2020 - 2022 Roland Gruber + Copyright (C) 2020 - 2024 Roland Gruber This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -400,6 +400,9 @@ class ConfigDataImporter { if (isset($value['openRequests'])) { $mainStep->addSubStep(new ImporterStep(_('Open requests'), 'requestAccess_openRequests', $value['openRequests'])); } + if (isset($value['historicRequests'])) { + $mainStep->addSubStep(new ImporterStep(_('Request history'), 'requestAccess_historicRequests', $value['historicRequests'])); + } $steps[] = $mainStep; } break; @@ -767,6 +770,9 @@ class ConfigDataImporter { case 'openRequests': $database->importOpenRequests($data); break; + case 'historicRequests': + $database->importRequestHistory($data); + break; } } }