From 33680d4467bdb75848d666638389b366e2a4a9aa Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 2 Feb 2017 08:45:36 -0700 Subject: [PATCH] * Admin: Save the bulk password reset notification email for next time --- admin/inc/class.admin_passwordreset.inc.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/inc/class.admin_passwordreset.inc.php b/admin/inc/class.admin_passwordreset.inc.php index e0343d1bfb..c25b084fe3 100644 --- a/admin/inc/class.admin_passwordreset.inc.php +++ b/admin/inc/class.admin_passwordreset.inc.php @@ -72,6 +72,9 @@ class admin_passwordreset } if (is_array($content)) { + // Save message for next time + Api\Config::save_value('password_reset_message',array('subject' => $content['subject'], 'body' => $content['body']),'admin'); + if ($content['download_csv'] && $content['changed']) { Api\Header\Content::type('changed.csv', 'text/csv'); @@ -258,6 +261,12 @@ class admin_passwordreset passwdhashes($GLOBALS['egw_info']['server'],true); $sel_options['activate'] = array('Deactivate','Activate'); + // Start with same message as last time + $config = Api\Config::read('admin'); + $message = $config['password_reset_message']; + $content['subject'] = $message['subject']; + $content['body'] = $message['body']; + $content['replacements'] = array(); foreach($this->replacements as $name => $label) {