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
864ba9a5
Commit
864ba9a5
authored
Sep 11, 2012
by
mcramer
Browse files
Bugfix: Event notifier not raised
parent
0be7e1ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/lib/classes/remoting.inc.php
View file @
864ba9a5
...
...
@@ -2673,7 +2673,7 @@ class remoting {
protected
function
insertQuery
(
$formdef_file
,
$client_id
,
$params
,
$event_identifier
=
''
)
{
$sql
=
$this
->
insertQueryPrepare
(
$formdef_file
,
$client_id
,
$params
);
if
(
$sql
!==
false
)
return
$this
->
insertQueryExecute
(
$sql
,
$params
,
$event_identifier
=
''
);
if
(
$sql
!==
false
)
return
$this
->
insertQueryExecute
(
$sql
,
$params
,
$event_identifier
);
else
return
false
;
}
...
...
@@ -2695,7 +2695,7 @@ class remoting {
$this
->
server
->
fault
(
'data_processing_error'
,
$app
->
remoting_lib
->
errorMessage
);
return
false
;
}
$app
->
log
(
'Executed insertQueryPrepare'
,
LOGLEVEL_DEBUG
);
return
$sql
;
}
...
...
@@ -2717,7 +2717,7 @@ class remoting {
// set a few values for compatibility with tform actions, mostly used by plugins
$this
->
id
=
$insert_id
;
$this
->
dataRecord
=
$params
;
$app
->
log
(
'Executed insertQueryExecute, raising events now if any: '
.
$event_identifier
,
LOGLEVEL_DEBUG
);
if
(
$event_identifier
!=
''
)
$app
->
plugin
->
raiseEvent
(
$event_identifier
,
$this
);
//$app->uses('tform');
...
...
@@ -2734,7 +2734,7 @@ class remoting {
global
$app
;
$sql
=
$this
->
updateQueryPrepare
(
$formdef_file
,
$client_id
,
$primary_id
,
$params
);
if
(
$sql
!==
false
)
return
$this
->
updateQueryExecute
(
$sql
,
$primary_id
,
$params
,
$event_identifier
=
''
);
if
(
$sql
!==
false
)
return
$this
->
updateQueryExecute
(
$sql
,
$primary_id
,
$params
,
$event_identifier
);
else
return
false
;
}
...
...
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