Fossil

Check-in [2664476f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make sure the tkt_uuid and tkt_datetime TH1 variables are initialized on a ticket display, even if no matching ticket is found.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:2664476fbc2dfd37ebda0a82e6ba19a4a557551b
User & Date: drh 2008-11-09 13:22:41
References
2008-11-09
23:02 Fixed ticket [1b4f9f30]: Error when submitting a new bug report. plus 2 other changes artifact: e0e7bcd4 user: drh
Context
2008-11-09
13:41
Allow the U card of a ticket change artifact to have no argument. When that happens, the user is assumed to be "anonymous". Ticket [1b4f9f30c1] check-in: 6eddf50c user: drh tags: trunk
13:22
Make sure the tkt_uuid and tkt_datetime TH1 variables are initialized on a ticket display, even if no matching ticket is found. check-in: 2664476f user: drh tags: trunk
13:21
Add a test command to invoke the manifest parser from the command-line on an arbitrary text file. For testing only. check-in: 55fc643e user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/tkt.c.

135
136
137
138
139
140
141



142
143
144
145
146



147
148
149
150
151
152
153
        Th_Store(zName, zVal);
      }
      free(zRevealed);
    }
  }else{
    db_finalize(&q);
    db_prepare(&q, "PRAGMA table_info(ticket)");



    while( db_step(&q)==SQLITE_ROW ){
      const char *zField = db_column_text(&q, 1);
      if( Th_Fetch(zField, &size)==0 ){
        Th_Store(zField, "");
      }



    }
  }
  db_finalize(&q);
}

/*
** Transfer all CGI parameters to variables in the interpreter.







>
>
>





>
>
>







135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
        Th_Store(zName, zVal);
      }
      free(zRevealed);
    }
  }else{
    db_finalize(&q);
    db_prepare(&q, "PRAGMA table_info(ticket)");
    if( Th_Fetch("tkt_uuid",&size)==0 ){
      Th_Store("tkt_uuid",zName);
    }
    while( db_step(&q)==SQLITE_ROW ){
      const char *zField = db_column_text(&q, 1);
      if( Th_Fetch(zField, &size)==0 ){
        Th_Store(zField, "");
      }
    }
    if( Th_Fetch("tkt_datetime",&size)==0 ){
      Th_Store("tkt_datetime","");
    }
  }
  db_finalize(&q);
}

/*
** Transfer all CGI parameters to variables in the interpreter.