Thanks for your reply. Is it ok to send a giant chunk of text here?
Here is my edit ticket script. I've inserted *** in front of the lines that I
have altered from default.
I've also included my table schema below as well.
<th1>
if {![info exists username]} {set username $login}
if {[info exists submit]} {
if {[info exists cmappnd]} {
if {[string length $cmappnd]>0} {
set ctxt "\n\n<hr /><i>[htmlize $login]"
if {$username ne $login} {
set ctxt "$ctxt claiming to be [htmlize $username]"
}
*** set ctxt "$ctxt added:</i><br />\n$cmappnd"
append_field comment $ctxt
}
}
submit_ticket
}
</th1>
<table cellpadding="5">
<tr><td class="tktDspLabel">Title:</td><td>
<input type="text" name="title" value="$<title>" size="60" />
</td></tr>
<tr><td class="tktDspLabel">Status:</td><td>
<th1>combobox status $status_choices 1</th1>
</td></tr>
<tr><td class="tktDspLabel">Type:</td><td>
<th1>combobox type $type_choices 1</th1>
</td></tr>
***<tr><td align="right">Assigned to:</td><td>
***<th1>combobox assigned_to $assigned_choices 1</th1>
***</td></tr>
<tr><td class="tktDspLabel">Severity:</td><td>
<th1>combobox severity $severity_choices 1</th1>
</td></tr>
<tr><td class="tktDspLabel">Priority:</td><td>
<th1>combobox priority $priority_choices 1</th1>
</td></tr>
<tr><td class="tktDspLabel">Resolution:</td><td>
<th1>combobox resolution $resolution_choices 1</th1>
</td></tr>
<th1>enable_output [hascap e]</th1>
*** <tr><td align="right">Reported by:</td><td>
*** <input type="text" name="opened_by" size="40"
*** value="$<opened_by>">
*** </td></tr>
***<th1>enable_output 1</th1>
***<tr><td class="tktDspLabel">Area:</td><td>
<input type="text" name="foundin" size="50" value="$<foundin>" />
</td></tr>
<tr><td colspan="2">
<th1>
if {![info exists eall]} {set eall 0}
if {[info exists aonlybtn]} {set eall 0}
if {[info exists eallbtn]} {set eall 1}
if {![hascap w]} {set eall 0}
if {![info exists cmappnd]} {set cmappnd {}}
set nline [linecount $comment 15 10]
enable_output $eall
</th1>
Description And Comments:<br />
<textarea name="comment" cols="80" rows="$nline"
wrap="virtual" class="wikiedit">$<comment></textarea><br />
<input type="hidden" name="eall" value="1" />
<input type="submit" name="aonlybtn" value="Append Remark" />
<input type="submit" name="preview1btn" value="Preview" />
<th1>enable_output [expr {!$eall}]</th1>
Append Remark from
<input type="text" name="username" value="$<username>" size="30" />:<br />
<textarea name="cmappnd" cols="80" rows="15"
wrap="virtual" class="wikiedit">$<cmappnd></textarea><br />
<th1>enable_output [expr {[hascap w] && !$eall}]</th1>
<input type="submit" name="eallbtn" value="Edit All" />
<th1>enable_output [expr {!$eall}]</th1>
<input type="submit" name="preview2btn" value="Preview" />
<th1>enable_output 1</th1>
</td></tr>
<th1>enable_output [info exists preview1btn]</th1>
<tr><td colspan="2">
Description Preview:<br /><hr />
<th1>wiki $comment</th1>
<hr />
</td></tr>
<th1>enable_output [info exists preview2btn]</th1>
<tr><td colspan="2">
Description Preview:<br /><hr />
<th1>wiki $cmappnd</th1>
<hr />
</td></tr>
<th1>enable_output 1</th1>
<tr><td align="right"></td><td>
<input type="submit" name="submit" value="Submit Changes" />
<input type="submit" name="cancel" value="Cancel" />
</td></tr>
</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
type TEXT,
status TEXT,
priority TEXT,
severity TEXT,
foundin TEXT,
resolution TEXT,
title TEXT,
comment TEXT,
assigned_to TEXT,
opened_by TEXT
);
________________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Richard Hipp
Sent: Tuesday, 12 June 2012 10:43 AM
To: Fossil SCM user's discussion
Subject: Re: [fossil-users] Submitting edits breaks ticket report?
Sounds more like something in the edit ticket script, not your report.
Can you send any additional detail?
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
--
D. Richard Hipp
[email protected]
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users