Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
intranet-hr
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-hr
Commits
851eace2
Commit
851eace2
authored
Nov 28, 2018
by
cosine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Added audit
parent
69fd23bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
new.tcl
www/new.tcl
+19
-17
No files found.
www/new.tcl
View file @
851eace2
...
...
@@ -438,16 +438,16 @@ if {[form is_submission $form_id]} {
vacation_balance = :vacation_balance
where
employee_id = :employee_id
"
ns_log Notice
"Dynfield: /intranet-hr/new: im_dynfield::attribute_store -object_type person -object_id
$employee
_id -form_id
$form
_id"
im_dynfield::attribute_store
\
-object_type
"person"
\
-object_id
$employee
_id
\
-form_id
$form
_id
"
ns_log Notice
"Dynfield: /intranet-hr/new: im_dynfield::attribute_store -object_type person -object_id
$employee
_id -form_id
$form
_id"
im_dynfield::attribute_store
\
-object_type
"person"
\
-object_id
$employee
_id
\
-form_id
$form
_id
if
[
catch
{
db_dml update_costs
"
db_dml update_costs
"
update im_costs set
cost_name = :employee_name,
cost_center_id = :department_id,
...
...
@@ -467,23 +467,25 @@ if {[form is_submission $form_id]} {
vat = :vat
where
cost_id = :rep_cost_id
"
"
db_dml insert_repeating_costs
"
db_dml insert_repeating_costs
"
update im_repeating_costs set
start_date = :start_date,
end_date = :end_date
where
rep_cost_id = :rep_cost_id
"
"
}
err_msg
]
{
ad_return_complaint 1
"<li>
[
_ intranet-hr.lt_Error_inserting_emplo
]
<BR>
}
err_msg
]
{
ad_return_complaint 1
"<li>
[
_ intranet-hr.lt_Error_inserting_emplo
]
<BR>
<pre>
$err
_msg</pre>"
}
}
im_audit -object_type person -action after_update -object_id
$employee
_id
ad_returnredirect
$return
_url
ad_script_abort
ad_returnredirect
$return
_url
ad_script_abort
}
if
{
[
form is_request
$form
_id
]
}
{
...
...
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