Commit f34d92e5 authored by cosine's avatar cosine

- Now sorting the names of tables to updated in generic

  SQL storage, so there will be a deterministic update
  order.
  This fixes a bug in cosine where im_projects was updated
  after im_timesheet_tasks, thus overwriting the percent_
  completed values set by a trigger on im_timesheet_tasks
parent 67e90afd
......@@ -562,7 +562,7 @@ ad_proc -public im_rest_object_type_update_sql {
ns_log Notice "im_rest_object_type_update_sql: [array get sql_hash]"
foreach table [array names sql_hash] {
foreach table [lsort [array names sql_hash]] {
ns_log Notice "im_rest_object_type_update_sql: Going to update table '$table'"
set sqls $sql_hash($table)
set update_sql "update $table set [join $sqls ", "] where $index_column($table) = :rest_oid"
......
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