Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
5fa5c0b3
Commit
5fa5c0b3
authored
Aug 03, 2010
by
jmontoya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moving id, and datarecord in the insertQuery in order to get the values when loading a plugin
parent
31c5f169
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
25 deletions
+9
-25
interface/lib/classes/remoting.inc.php
interface/lib/classes/remoting.inc.php
+9
-25
No files found.
interface/lib/classes/remoting.inc.php
View file @
5fa5c0b3
...
...
@@ -1944,21 +1944,12 @@ class remoting {
//* Save changes to Datalog
if
(
$app
->
remoting_lib
->
formDef
[
"db_history"
]
==
'yes'
)
{
$new_rec
=
$app
->
remoting_lib
->
getDataRecord
(
$insert_id
);
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
$app
->
remoting_lib
->
ispconfig_sysuser_add
(
$params
,
$insert_id
);
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
$app
->
remoting_lib
->
ispconfig_sysuser_add
(
$params
,
$insert_id
);
}
return
$insert_id
;
}
private
function
insertQuery
(
$formdef_file
,
$client_id
,
$params
,
$event_identifier
=
''
)
{
global
$app
,
$tform
,
$remoting_lib
;
...
...
@@ -1987,21 +1978,18 @@ class remoting {
$insert_id
=
$app
->
db
->
insertID
();
// set a few values for compatibility with tform actions, mostly used by plugins
$this
->
id
=
$insert_id
;
$this
->
dataRecord
=
$params
;
if
(
$event_identifier
!=
''
)
$app
->
plugin
->
raiseEvent
(
$event_identifier
,
$this
);
//$app->uses('tform');
//* Save changes to Datalog
if
(
$app
->
remoting_lib
->
formDef
[
"db_history"
]
==
'yes'
)
{
$new_rec
=
$app
->
remoting_lib
->
getDataRecord
(
$insert_id
);
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
}
// set a few values for compatibility with tform actions, mostly used by plugins
$this
->
id
=
$insert_id
;
$this
->
dataRecord
=
$params
;
$app
->
remoting_lib
->
datalogSave
(
'INSERT'
,
$primary_id
,
array
(),
$new_rec
);
}
return
$insert_id
;
}
...
...
@@ -2032,7 +2020,6 @@ class remoting {
$this
->
id
=
$primary_id
;
$this
->
dataRecord
=
$params
;
$app
->
db
->
query
(
$sql
);
if
(
$app
->
db
->
errorMessage
!=
''
)
{
...
...
@@ -2050,8 +2037,6 @@ class remoting {
$app
->
remoting_lib
->
datalogSave
(
'UPDATE'
,
$primary_id
,
$old_rec
,
$new_rec
);
}
return
$affected_rows
;
}
...
...
@@ -2131,5 +2116,4 @@ class remoting {
}
}
}
?>
?>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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