Diff
Not logged in

Differences From:

File src/manifest.c part of check-in [d5e7891b07] - Add a more advanced commit-hook mechanism that allows us to specify multiple procedures in a particular order prior to commit. Continuing work toward getting tickets going. by drh on 2007-11-18 20:48:07. [view]

To:

File src/manifest.c part of check-in [fb358ca492] - Progress toward getting ticketing working. We can enter a new ticket and display it. Cannot yet edit a ticket. by drh on 2007-11-24 19:33:46. Also file src/manifest.c part of check-in [d0305b305a] - Merged mainline into my branch to get the newest application. by aku on 2007-12-05 08:07:46. [view]

@@ -858,11 +858,27 @@
       TAG_BGCOLOR, rid,
       TAG_BGCOLOR, rid,
       TAG_USER, rid,
       TAG_COMMENT, rid
+    );
+    free(zComment);
+  }
+  if( m.type==CFTYPE_TICKET ){
+    char *zTag;
+    char *zComment;
+
+    ticket_insert(&m, 1, 1);
+    zTag = mprintf("tkt-%s", m.zTicketUuid);
+    tag_insert(zTag, 1, 0, rid, m.rDate, rid);
+    free(zTag);
+    zComment = mprintf("Changes to ticket [%.10s]", m.zTicketUuid);
+    db_multi_exec(
+      "INSERT INTO event(type,mtime,objid,user,comment)"
+      "VALUES('t',%.17g,%d,%Q,%Q)",
+      m.rDate, rid, m.zUser, zComment
     );
     free(zComment);
   }
   db_end_transaction(0);
   manifest_clear(&m);
   return 1;
 }