View Ticket
Not logged in
Ticket UUID: 4c8803b3b16812d64f4327bec87bafac07d68537
Title: Have to edit a ticket twice once for text another for drop down box.
Status: Closed Type: Code_Defect
Severity: Minor Priority:
Subsystem: Resolution: External_Bug
Last Modified: 2009-09-19 14:22:11
Version Found In: 713b8be852 2009-08-28
Description & Comments:
I edit text in the field that I'm currently writing to you in and change my assigned to drop down box but only the text get added to the ticket and not the drop down box value. I have to edit the ticket after that to change the assigned to drop down box and apply the changes for the assigned to drop down settings stick. The drop down is a new field that I have added but I used the template to create the new field. The assigned to helps pass the tickets from one developer to the next. Here is a copy of it... The names have been changed to protect the innocent.

Below is my create table


CREATE TABLE ticket(
  -- Do not change any column that begins with tkt_
  tkt_id INTEGER PRIMARY KEY,
  tkt_uuid TEXT UNIQUE,
  tkt_mtime DATE,
  -- Add as many field as required below this line
  assigned_To TEXT,
  type TEXT,
  status TEXT,
  subsystem TEXT,
  priority TEXT,
  severity TEXT,
  foundin TEXT,
  private_contact TEXT,
  resolution TEXT,
  title TEXT,
  comment TEXT
);

Below is my TH1 Script to initialize variable


set type_choices {
   Need_To_Discuss
   Question
   Code_Defect
   Build_Problem
   Documentation
   Feature_Request
   Incident
}
set assigned_To_choices {
  Joe
  Mama
  Both
}
set priority_choices {
  Immediate
  High
  Medium
  Low
  Zero
}
set severity_choices {
  Critical
  Severe
  Important
  Minor
  Cosmetic
}
set resolution_choices {
  Open
  Fixed
  Rejected
  Unable_To_Reproduce
  Works_As_Designed
  External_Bug
  Not_A_Bug
  Duplicate
  Overcome_By_Events
  Drive_By_Patch
}
set status_choices {
  Open
  Verified
  Review
  Deferred
  Fixed
  Tested
  Closed
}
set subsystem_choices {
}


Below is my new ticket page


<th1>
  if {[info exists submit]} {
     set status Open
     submit_ticket
  }
</th1>
<h1 align="center">Enter A New Bug Report</h1>
<table cellpadding="5">
<tr>
<td colspan="2">
Enter a one-line summary of the problem:<br>
<input type="text" name="title" size="60" value="$<title>">
</td>
</tr>

<tr>
<td align="right">Type:
<th1>combobox type $type_choices 1</th1>
</td>
<td>What type of ticket is this?</td>
</tr>

<tr>
<td align="right">Assign To:
<th1>combobox type $assigned_To_choices 1</th1>
</td>
<td>Who is this ticket assigned to?</td>
</tr>

<tr>
<td align="right">File:
<input type="text" name="foundin" size="20" value="$<foundin>">
</td>
<td>In what file did you observe the problem?</td>
</tr>

<tr>
<td align="right">Severity:
<th1>combobox severity $severity_choices 1</th1>
</td>
<td>How debilitating is the problem?  How badly does the problem
affect the operation of the product?</td>
</tr>


<tr>
<td colspan="2">
Enter a detailed description of the problem.
For code defects, be sure to provide details on exactly how
the problem can be reproduced.  Provide as much detail as
possible.
<br>
<th1>set nline [linecount $comment 50 10]</th1>
<textarea name="comment" cols="80" rows="$nline"
 wrap="virtual" class="wikiedit">$<comment></textarea><br>
<input type="submit" name="preview" value="Preview">
</tr>

<th1>enable_output [info exists preview]</th1>
<tr><td colspan="2">
Description Preview:<br><hr>
<th1>wiki $comment</th1>
<hr>
</td></tr>
<th1>enable_output 1</th1>

<tr>
<td align="right">
<input type="submit" name="submit" value="Submit">
</td>
<td>After filling in the information above, press this button to create
the new ticket</td>
</tr>
<tr>
<td align="right">
<input type="submit" name="cancel" value="Cancel">
</td>
<td>Abandon and forget this bug report</td>
</tr>
</table>

drh added on 2009-09-19 14:22:11:
The line in your customized new-ticket script that says:

<th1>combobox type $assigned_To_choices 1</th1>

Should say:

<th1>combobox assigned_To $assigned_To_choices 1</th1>