Differences From:
File
src/manifest.c
part of check-in
[b3ee50c946]
- Implement history display for tickets.
by
drh on
2008-07-15 19:03:42.
[view]
To:
File
src/manifest.c
part of check-in
[ac3f1f2ba7]
- Improvements to how ticket changes are displayed in the UI. The
hyperlink is show with strick-through if the ticket is closed. The
title is shown after the ticket hyperlink. SQL to determine
the closed condition and the title can be set in the ticket
setup screens.
by
drh on
2008-10-18 02:27:13.
[view]
@@ -895,9 +895,8 @@
}
if( m.type==CFTYPE_TICKET ){
char *zTag;
Blob comment;
- int i;
ticket_insert(&m, 1, 1);
zTag = mprintf("tkt-%s", m.zTicketUuid);
tag_insert(zTag, 1, 0, rid, m.rDate, rid);
@@ -920,8 +919,10 @@
m.aField[0].zName, m.zTicketUuid
);
}
}else{
+#if 0
+ int i;
const char *z;
const char *zSep = " ";
blob_appendf(&comment, "%d changes to ticket [%.10s]:",
m.nField, m.zTicketUuid);
@@ -930,8 +931,10 @@
if( z[0]=='+' ) z++;
blob_appendf(&comment, "%s%h", zSep, z);
zSep = ", ";
}
+#endif
+ blob_appendf(&comment, "Edits to ticket [%.10s]", m.zTicketUuid);
}
db_multi_exec(
"REPLACE INTO event(type,mtime,objid,user,comment)"
"VALUES('t',%.17g,%d,%Q,%Q)",