On Wed, Feb 16, 2011 at 9:18 AM, Stephen De Gabrielle
<[email protected]> wrote:
> I'm sorry, I'm not at all familiar with TH1.
It is a varient of TCL that Fossile uses for scripting of user defined
logic for tickets. (It also works in the header and footer html.)
> What exactly did you put in the form template for the new ticket screen?
>
> I'm prety sure this doesn't create a date input field
> <th1> set d [ string range [ date ] 0 10 ]</th1>
>
> But I don't see how it can be included in the submitted ticket?
In the "New Ticket" html, I added a TH1 statment to save the date as
the opened date of the ticket:
<th1>
if {[info exists submit]} {
set status New
set opened [ string range [ date ] 0 10 ]
submit_ticket
}
</th1>
(I also changed the initial status to "New".)
In this case, "date" is a Fossil specific function that returns the
current date and time formated as yyyy-mm-dd HH:MM:SS.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users