Commit ceb23b28 authored by jago's avatar jago

- Helpdesk:

  Added an update of the im_project.project_status_id field
  when updating a ticket status via the "Edit" function
parent 3acf7d68
...@@ -41,7 +41,8 @@ ...@@ -41,7 +41,8 @@
parent_id = :ticket_sla_id, parent_id = :ticket_sla_id,
company_id = (select company_id from im_projects where project_id = :ticket_sla_id), company_id = (select company_id from im_projects where project_id = :ticket_sla_id),
project_name = :ticket_name, project_name = :ticket_name,
project_nr = :ticket_nr project_nr = :ticket_nr,
project_status_id = :project_status_id
where where
project_id = :ticket_id; project_id = :ticket_id;
</querytext> </querytext>
......
...@@ -848,7 +848,12 @@ ad_form -extend -name helpdesk_ticket -on_request { ...@@ -848,7 +848,12 @@ ad_form -extend -name helpdesk_ticket -on_request {
set start_date_sql [template::util::date get_property sql_date $start_date] set start_date_sql [template::util::date get_property sql_date $start_date]
set end_date_sql [template::util::date get_property sql_timestamp $end_date] set end_date_sql [template::util::date get_property sql_timestamp $end_date]
# Update the ticket itself
db_dml ticket_update {} db_dml ticket_update {}
# Update the im_projects table with ticket fields and an open/closed project status
set project_status_id [im_project_status_open]
if {[im_category_is_a $ticket_status_id [im_ticket_status_closed]]} { set project_status_id [im_project_status_closed] }
db_dml project_update {} db_dml project_update {}
im_dynfield::attribute_store \ im_dynfield::attribute_store \
......
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