Commit 8004715a authored by Frank Bergmann's avatar Frank Bergmann

- CSV-Import:

  Added audit hooks after loading projects
parent 1f5ba259
...@@ -425,13 +425,11 @@ foreach csv_line_fields $values_list_of_lists { ...@@ -425,13 +425,11 @@ foreach csv_line_fields $values_list_of_lists {
continue continue
} }
# Add the project lead to the list of project members # Add the project lead to the list of project members
if {"" != $project_lead_id} { if {"" != $project_lead_id} {
set role_id [im_biz_object_role_project_manager] set role_id [im_biz_object_role_project_manager]
im_biz_object_add_role $project_lead_id $project_id $role_id im_biz_object_add_role $project_lead_id $project_id $role_id
} }
# ------------------------------------------------------- # -------------------------------------------------------
# Make sure there is an entry in im_timesheet_tasks if the project is of type task # Make sure there is an entry in im_timesheet_tasks if the project is of type task
...@@ -511,6 +509,7 @@ foreach csv_line_fields $values_list_of_lists { ...@@ -511,6 +509,7 @@ foreach csv_line_fields $values_list_of_lists {
where where
task_id = :project_id task_id = :project_id
" "
} }
...@@ -575,6 +574,10 @@ foreach csv_line_fields $values_list_of_lists { ...@@ -575,6 +574,10 @@ foreach csv_line_fields $values_list_of_lists {
} }
} }
if {$ns_write_p} { ns_write "<li>Going to write audit log.\n" }
im_audit -object_id $project_id
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment