Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
28ade6a9
Commit
28ade6a9
authored
Sep 12, 2012
by
mcramer
Browse files
Bugfix: No event was risen on updating client (client_update)
parent
989b39b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
28ade6a9
...
...
@@ -1079,7 +1079,7 @@ class remoting {
return
false
;
}
if
(
!
isset
(
$params
[
'parent_client_id'
])
||
$params
[
'parent_client_id'
]
==
0
)
$params
[
'parent_client_id'
]
=
$reseller_id
;
$affected_rows
=
$this
->
updateQuery
(
'../client/form/'
.
(
isset
(
$params
[
'limit_client'
])
&&
$params
[
'limit_client'
]
>
0
?
'reseller'
:
'client'
)
.
'.tform.php'
,
$reseller_id
,
$client_id
,
$params
);
$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'
);
$app
->
remoting_lib
->
ispconfig_sysuser_update
(
$params
,
$client_id
);
...
...
@@ -2784,6 +2784,7 @@ class remoting {
$this
->
oldDataRecord
=
$old_rec
;
$this
->
id
=
$primary_id
;
$this
->
dataRecord
=
$params
;
$app
->
log
(
'Executed updateQueryExecute, raising events now if any: '
.
$event_identifier
,
LOGLEVEL_DEBUG
);
$app
->
db
->
query
(
$sql
);
...
...
@@ -2823,6 +2824,7 @@ class remoting {
$this
->
oldDataRecord
=
$old_rec
;
$this
->
id
=
$primary_id
;
$this
->
dataRecord
=
$old_rec
;
$app
->
log
(
'Executed deleteQuery, raising events now if any: '
.
$event_identifier
,
LOGLEVEL_DEBUG
);
//$this->dataRecord = $params;
//* Get the SQL query
...
...
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