Commit 538d1e06 authored by Frank Bergmann's avatar Frank Bergmann

- Fixed deleting tasks

  after importing GanttProject
parent 899fe400
......@@ -119,6 +119,13 @@ foreach old_id $task_id {
# Move sub-projects and sub-tasks to the new project.
# Financial caches are updated automatically (nice test for the trigger, actually...)
#
db_dml update_children "
UPDATE im_projects SET
project_nr = project_nr || '.' || project_id,
project_name = project_name || ' ' || project_id
where parent_id = :old_id
"
db_dml move_children "UPDATE im_projects SET parent_id = :new_id WHERE parent_id = :old_id"
# Delete membership relationships
......
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