Diff
Not logged in

Differences From:

File src/info.c part of check-in [72b3b1ad47] - Incremental web interface enhancments. by drh on 2007-09-22 18:13:31. [view]

To:

File src/info.c part of check-in [09c4adeb6f] - Rework the tag system so that propagation to children is a property of each tag and does not depend on the tag name beginning with "br". Older tag artifacts might not work. The database will need to be rebuilt after upgrading to this version. by drh on 2007-09-22 23:41:29. [view]

@@ -246,9 +246,9 @@
   Stmt q;
   int cnt = 0;
   db_prepare(&q,
     "SELECT tag.tagid, tagname, srcid, blob.uuid, value,"
-    "       datetime(tagxref.mtime,'localtime'), addflag"
+    "       datetime(tagxref.mtime,'localtime'), tagtype"
     "  FROM tagxref JOIN tag ON tagxref.tagid=tag.tagid"
     "       LEFT JOIN blob ON blob.rid=tagxref.srcid"
     " WHERE tagxref.rid=%d"
     " ORDER BY tagname", rid
@@ -258,9 +258,9 @@
     int srcid = db_column_int(&q, 2);
     const char *zUuid = db_column_text(&q, 3);
     const char *zValue = db_column_text(&q, 4);
     const char *zDate = db_column_text(&q, 5);
-    int addFlag = db_column_int(&q, 6);
+    int tagtype = db_column_int(&q, 6);
     cnt++;
     if( cnt==1 ){
       @ <h2>Tags And Properties</h2>
       @ <ul>
@@ -268,9 +268,9 @@
     @ <li>
     @ <b>%h(zTagname)</b>
     if( zValue ){
       @ = %h(zValue)<i>
-    }else if( !addFlag ){
+    }else if( tagtype==0 ){
       @ <i>Cancelled
     }else{
       @ <i>
     }