diff --git a/interface/lib/classes/tform_actions.inc.php b/interface/lib/classes/tform_actions.inc.php index b181be01989cf2a90f3608a329c26cf15b54ccdf..4db3157e53da50e9bca54f0ab97fd76fac6254e3 100644 --- a/interface/lib/classes/tform_actions.inc.php +++ b/interface/lib/classes/tform_actions.inc.php @@ -313,7 +313,8 @@ class tform_actions { $this->dataRecord = $app->tform->getDataRecord($this->id); $this->onBeforeDelete(); - + $app->plugin->raiseEvent($_SESSION['s']['module']['name'].':'.$app->tform->formDef['name'].':'.'on_before_delete',$this); + // Saving record to datalog when db_history enabled if($app->tform->formDef["db_history"] == 'yes') { //$old_data_record = $app->tform->getDataRecord($this->id); diff --git a/interface/lib/lang/de.lng b/interface/lib/lang/de.lng index 46fcb846699f43421e30d4e9b91dc586c0a15973..0ccdb30c8ef511bf998cec2a86d8c23472b182e9 100644 --- a/interface/lib/lang/de.lng +++ b/interface/lib/lang/de.lng @@ -136,4 +136,5 @@ $wb['no_destination_perm'] = 'Sie haben keine Berechtigung für dieses Ziel.'; $wb['client_you_are_locked'] = 'Sie haben keine Berechtigung, Einstellungen zu verändern.'; $wb['gender_m_txt'] = 'Herr'; $wb['gender_f_txt'] = 'Frau'; +$wb['client_cannot_be_deleted_because_of_billing_module_txt'] = 'Für den Kunden existieren Einträge im Billing-Modul, daher kann er nicht gelöscht werden.'; ?> \ No newline at end of file diff --git a/interface/lib/lang/en.lng b/interface/lib/lang/en.lng index 1d689f01040a726f4b5ac3c29e0db1e811712b3c..1ce525b0b39a7dda2b26871b6f519ec88e94b971 100644 --- a/interface/lib/lang/en.lng +++ b/interface/lib/lang/en.lng @@ -138,4 +138,5 @@ $wb["no_destination_perm"] = 'You have no permission for this destination.'; $wb['client_you_are_locked'] = 'You have no permission to change any settings.'; $wb['gender_m_txt'] = 'Mr.'; $wb['gender_f_txt'] = 'Ms.'; +$wb['client_cannot_be_deleted_because_of_billing_module_txt'] = 'This client has records in the billing module, therefore he cannot be deleted.'; ?>