Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
simple-survey
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
project-open
simple-survey
Commits
17b03e26
Commit
17b03e26
authored
Jun 08, 2018
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Now supporting both after_update and after_create audit and callbacks
parent
aa8e86c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
process-response.tcl
www/process-response.tcl
+16
-10
No files found.
www/process-response.tcl
View file @
17b03e26
...
...
@@ -165,16 +165,16 @@ if {"" != $task_id} {
db_transaction
{
if
{
$create
_response_p
}
{
db_exec_plsql create_response
{
begin
db_exec_plsql create_response
{
begin
:1 := survsimp_response.new
(
response_id => :response_id,
survey_id => :survey_id,
context_id => :survey_id,
creation_user => :user_id
);
end
;
}
response_id => :response_id,
survey_id => :survey_id,
context_id => :survey_id,
creation_user => :user_id
);
end
;
}
}
db_dml update_oid
"
...
...
@@ -372,7 +372,13 @@ db_transaction {
return
}
im_audit -object_id
$response
_id -object_type
"survsimp_response"
-action after_create
if
{
$create
_response_p
}
{
im_audit -object_id
$response
_id -object_type
"survsimp_response"
-action after_create
}
else
{
im_audit -object_id
$response
_id -object_type
"survsimp_response"
-action after_update
}
#
# Survey type-specific stuff
...
...
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