Skip to content

Commit 28ade6a

Browse files
author
mcramer
committed
Bugfix: No event was risen on updating client (client_update)
1 parent 989b39b commit 28ade6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

interface/lib/classes/remoting.inc.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1079,7 +1079,7 @@ public function client_update($session_id, $client_id, $reseller_id, $params)
10791079
return false;
10801080
}
10811081
if(!isset($params['parent_client_id']) || $params['parent_client_id'] == 0) $params['parent_client_id'] = $reseller_id;
1082-
$affected_rows = $this->updateQuery('../client/form/' . (isset($params['limit_client']) && $params['limit_client'] > 0 ? 'reseller' : 'client') . '.tform.php', $reseller_id, $client_id, $params);
1082+
$affected_rows = $this->updateQuery('../client/form/' . (isset($params['limit_client']) && $params['limit_client'] > 0 ? 'reseller' : 'client') . '.tform.php', $reseller_id, $client_id, $params, 'client:' . ($reseller_id ? 'reseller' : 'client') . ':on_after_update');
10831083

10841084
$app->remoting_lib->ispconfig_sysuser_update($params,$client_id);
10851085

@@ -2784,6 +2784,7 @@ protected function updateQueryExecute($sql, $primary_id, $params, $event_identif
27842784
$this->oldDataRecord = $old_rec;
27852785
$this->id = $primary_id;
27862786
$this->dataRecord = $params;
2787+
$app->log('Executed updateQueryExecute, raising events now if any: ' . $event_identifier, LOGLEVEL_DEBUG);
27872788

27882789
$app->db->query($sql);
27892790

@@ -2823,6 +2824,7 @@ protected function deleteQuery($formdef_file, $primary_id, $event_identifier = '
28232824
$this->oldDataRecord = $old_rec;
28242825
$this->id = $primary_id;
28252826
$this->dataRecord = $old_rec;
2827+
$app->log('Executed deleteQuery, raising events now if any: ' . $event_identifier, LOGLEVEL_DEBUG);
28262828
//$this->dataRecord = $params;
28272829

28282830
//* Get the SQL query

0 commit comments

Comments
 (0)