CVSTrac Legacy Code

Check-in [5e407f9cfd]
Login

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

Overview
Comment:(#118) %c using owner when no contact specified was broken by 1.111 commit.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 5e407f9cfd145ab90cc5eab64dc5fd07d09d3688
User & Date: ono 2008-09-16 15:10:28
Context
2008-09-16
15:12
Carriage returns, line feeds and tabs in the command line may make the Windows command line incomplete. check-in: 79df195944 user: ono tags: trunk
15:10
(#118) %c using owner when no contact specified was broken by 1.111 commit. check-in: 5e407f9cfd user: ono tags: trunk
14:23
(#762) fix order of month/date in output. check-in: bf7c25aa02 user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ticket.c.

116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    c = aKeys[i].key;
    if( cnt[c]>0 ){
      azSubst[c] =
        db_short_query("SELECT %s FROM ticket WHERE tn=%d",
                       aKeys[i].zColumn, tn);
    }
  }
  if( cnt['c']>0 && azSubst['c']==0 && azSubst['c'][0]==0 ){
    azSubst['c'] = 
      db_short_query("SELECT user.email FROM ticket, user "
                     "WHERE ticket.tn=%d and ticket.owner=user.id", tn);
  }
  if( cnt['D'] ){
    azSubst['D'] = format_formatted( azSubst['d'] );
    cnt['d']--;







|







116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
    c = aKeys[i].key;
    if( cnt[c]>0 ){
      azSubst[c] =
        db_short_query("SELECT %s FROM ticket WHERE tn=%d",
                       aKeys[i].zColumn, tn);
    }
  }
  if( cnt['c']>0 && (azSubst['c']==0 || azSubst['c'][0]==0) ){
    azSubst['c'] = 
      db_short_query("SELECT user.email FROM ticket, user "
                     "WHERE ticket.tn=%d and ticket.owner=user.id", tn);
  }
  if( cnt['D'] ){
    azSubst['D'] = format_formatted( azSubst['d'] );
    cnt['d']--;