Skip to content

Commit 15a6b83

Browse files
author
Till Brehm
committed
Merge branch 'stable-3.1' into 'stable-3.1'
Fixes #4092 See merge request !419
2 parents 3da05a7 + 1845014 commit 15a6b83

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

interface/web/mail/mail_user_edit.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ function onShowEnd() {
9393

9494
// Get the spamfilter policys for the user
9595
$tmp_user = $app->db->queryOneRecord("SELECT policy_id FROM spamfilter_users WHERE email = ?", $this->dataRecord["email"]);
96+
if (isset($_POST['policy'])) $tmp_user['policy_id'] = intval($_POST['policy']);
9697
$sql = "SELECT id, policy_name FROM spamfilter_policy WHERE ".$app->tform->getAuthSQL('r') . " ORDER BY policy_name";
9798
$policys = $app->db->queryAllRecords($sql);
9899
$policy_select = "<option value='0'>".$app->tform->lng("no_policy")."</option>";

0 commit comments

Comments
 (0)