Fossil

Check-in [ed5179db1f]
Login

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

Overview
Comment:Enable the "Edit" submenu link on the Ticket View page when the user has ticket append privilege. Fix for part of ticket [7b9be0b127].
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ed5179db1fb92ca486587210043844e1cef7922e
User & Date: drh 2008-11-15 21:17:31.000
References
2008-11-17
22:04 Ticket [c62fac40af] Edit CSS/HTML in Setup adds extra CR/LF, wrong http Content-length status still Open with 4 other changes ... (artifact: 0582023acc user: anonymous)
2008-11-15
21:21 Fixed ticket [7b9be0b127]: direct link to embedded wiki pages plus 2 other changes ... (artifact: 9655f680ee user: drh)
Context
2008-11-17
02:07
reference docs -- added 'all', minor edits to others. ... (check-in: 44b3fc6b5b user: kejoki tags: trunk)
2008-11-15
21:17
Enable the "Edit" submenu link on the Ticket View page when the user has ticket append privilege. Fix for part of ticket [7b9be0b127]. ... (check-in: ed5179db1f user: drh tags: trunk)
14:18
Miscellaneous cosmetic changes ... (check-in: 9de6abab2a user: eric tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/tkt.c.
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
**
** View a ticket.
*/
void tktview_page(void){
  const char *zScript;
  login_check_credentials();
  if( !g.okRdTkt ){ login_needed(); return; }
  if( g.okWrTkt ){
    style_submenu_element("Edit", "Edit The Ticket", "%s/tktedit?name=%T",
        g.zTop, PD("name",""));
  }
  if( g.okHistory ){
    const char *zUuid = PD("name","");
    style_submenu_element("History", "History Of This Ticket", 
        "%s/tkthistory/%T", g.zTop, zUuid);







|







323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
**
** View a ticket.
*/
void tktview_page(void){
  const char *zScript;
  login_check_credentials();
  if( !g.okRdTkt ){ login_needed(); return; }
  if( g.okWrTkt || g.okApndTkt ){
    style_submenu_element("Edit", "Edit The Ticket", "%s/tktedit?name=%T",
        g.zTop, PD("name",""));
  }
  if( g.okHistory ){
    const char *zUuid = PD("name","");
    style_submenu_element("History", "History Of This Ticket", 
        "%s/tkthistory/%T", g.zTop, zUuid);