Skip to content
Snippets Groups Projects
Commit e631410a authored by tbrehm's avatar tbrehm
Browse files

Fixed: FS#1220 - /var/vmail/(domain)/(user) directories and files not delete...

Fixed: FS#1220 - /var/vmail/(domain)/(user) directories and files not delete when mail_user is deleted via remote.
parent 79c08d15
No related branches found
No related tags found
No related merge requests found
...@@ -2065,6 +2065,13 @@ class remoting { ...@@ -2065,6 +2065,13 @@ class remoting {
//* Load the form definition //* Load the form definition
$app->remoting_lib->loadFormDef($formdef_file); $app->remoting_lib->loadFormDef($formdef_file);
$old_rec = $app->remoting_lib->getDataRecord($primary_id);
// set a few values for compatibility with tform actions, mostly used by plugins
$this->oldDataRecord = $old_rec;
$this->id = $primary_id;
$this->dataRecord = $params;
//* Get the SQL query //* Get the SQL query
$sql = $app->remoting_lib->getDeleteSQL($primary_id); $sql = $app->remoting_lib->getDeleteSQL($primary_id);
...@@ -2079,8 +2086,7 @@ class remoting { ...@@ -2079,8 +2086,7 @@ class remoting {
//* Save changes to Datalog //* Save changes to Datalog
if($app->remoting_lib->formDef["db_history"] == 'yes') { if($app->remoting_lib->formDef["db_history"] == 'yes') {
$rec = $app->remoting_lib->getDataRecord($primary_id); $app->remoting_lib->datalogSave('DELETE',$primary_id,$old_rec,array());
$app->remoting_lib->datalogSave('DELETE',$primary_id,$rec,array());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment