Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
434907e5
Commit
434907e5
authored
Sep 17, 2009
by
tbrehm
Browse files
Fixed: FS#905 - Mailfilter PHP \n Broken
parent
8afac82c
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/mail/mail_user_filter_edit.php
View file @
434907e5
...
...
@@ -68,6 +68,7 @@ class page_action extends tform_actions {
function
onAfterInsert
()
{
global
$app
,
$conf
;
/*
$mailuser = $app->db->queryOneRecord("SELECT sys_groupid, custom_mailfilter FROM mail_user WHERE mailuser_id = ".$this->dataRecord["mailuser_id"]);
$rule_content = $mailuser['custom_mailfilter']."\n".$app->db->quote($this->getRule());
$rule_content = $app->db->quote($rule_content);
...
...
@@ -75,7 +76,10 @@ class page_action extends tform_actions {
// set permissions
$app->db->query("UPDATE mail_user_filter SET sys_groupid = ".$mailuser['sys_groupid']." WHERE filter_id = ".$this->id);
*/
$this
->
onAfterUpdate
();
$app
->
db
->
query
(
"UPDATE mail_user_filter SET sys_groupid = "
.
$mailuser
[
'sys_groupid'
]
.
" WHERE filter_id = "
.
$this
->
id
);
}
function
onAfterUpdate
()
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment