Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-rest
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
intranet-rest
Commits
7be9f701
Commit
7be9f701
authored
Dec 13, 2011
by
Frank Bergmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Fixed audit action
parent
7b4d211f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
16 deletions
+16
-16
intranet-rest-create-procs.tcl
tcl/intranet-rest-create-procs.tcl
+16
-16
No files found.
tcl/intranet-rest-create-procs.tcl
View file @
7be9f701
...
...
@@ -105,7 +105,7 @@ ad_proc -private im_rest_post_object_type_im_project {
}
# Write Audit Trail
im_project_audit -project_id
$rest
_oid -action create
im_project_audit -project_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
return
[
array
get hash_array
]
...
...
@@ -230,7 +230,7 @@ ad_proc -private im_rest_post_object_type_im_ticket {
}
# Write Audit Trail
im_project_audit -project_id
$rest
_oid -action create
im_project_audit -project_id
$rest
_oid -action
after_
create
ns_log Notice
"im_rest_post_object_type_im_ticket: Successfully created object with object_id=
$rest
_oid"
set hash_array
(
rest_oid
)
$rest
_oid
...
...
@@ -339,7 +339,7 @@ ad_proc -private im_rest_post_object_type_im_timesheet_task {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
task_id
)
$rest
_oid
...
...
@@ -424,7 +424,7 @@ ad_proc -private im_rest_post_object_type_im_trans_task {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
task_id
)
$rest
_oid
...
...
@@ -577,7 +577,7 @@ ad_proc -private im_rest_post_object_type_im_company {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
company_id
)
$rest
_oid
...
...
@@ -685,7 +685,7 @@ ad_proc -private im_rest_post_object_type_im_user_absence {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
absence_id
)
$rest
_oid
...
...
@@ -876,7 +876,7 @@ ad_proc -private im_rest_post_object_type_user {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$new
_user_id -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$new
_user_id -action
after_
create
set rest_oid
$new
_user_id
...
...
@@ -984,7 +984,7 @@ ad_proc -private im_rest_post_object_type_im_invoice {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error updating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
invoice_id
)
$rest
_oid
...
...
@@ -1019,7 +1019,7 @@ ad_proc -private im_rest_post_object_type_im_trans_invoice {
where object_id = :rest_oid
"
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array(rest_oid)
$rest
_oid
set hash_array(invoice_id)
$rest
_oid
...
...
@@ -1118,7 +1118,7 @@ ad_proc -private im_rest_post_object_type_im_invoice_item {
im_invoice_update_rounded_amount -invoice_id
$invoice
_id
# No audit here, invoice_item is not a real object
# im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
# im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
item_id
)
$rest
_oid
...
...
@@ -1209,7 +1209,7 @@ ad_proc -private im_rest_post_object_type_im_hour {
}
# Not a real object, so no audit!
# im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
# im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
hour_id
)
$rest
_oid
...
...
@@ -1356,7 +1356,7 @@ ad_proc -private im_rest_post_object_type_membership_rel {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error creating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
rel_id
)
$rest
_oid
...
...
@@ -1437,7 +1437,7 @@ ad_proc -private im_rest_post_object_type_im_biz_object_member {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error creating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
}
set hash_array
(
rest_oid
)
$rest
_oid
...
...
@@ -1516,7 +1516,7 @@ ad_proc -private im_rest_post_object_type_im_ticket_ticket_rel {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error creating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
rel_id
)
$rest
_oid
...
...
@@ -1593,7 +1593,7 @@ ad_proc -private im_rest_post_object_type_im_key_account_rel {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error creating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
rel_id
)
$rest
_oid
...
...
@@ -1669,7 +1669,7 @@ ad_proc -private im_rest_post_object_type_im_company_employee_rel {
return
[
im_rest_error -format
$format
-http_status 406 -message
"Error creating
$rest
_otype_pretty: '
$err
_msg'."
]
}
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action create
im_audit -user_id
$user
_id -object_type
$rest
_otype -object_id
$rest
_oid -action
after_
create
set hash_array
(
rest_oid
)
$rest
_oid
set hash_array
(
rel_id
)
$rest
_oid
...
...
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