How to close a ticket with a normal HTML Form

English! place to talk about development, programming and coding
Post Reply
Bishop_DL
Znuny newbie
Posts: 59
Joined: 23 Mar 2011, 09:38
Znuny Version: 3.1.3

How to close a ticket with a normal HTML Form

Post by Bishop_DL »

Hey guys,
first of all, excuse me for my bad english but there is no german delevoper thread here.

I am trying to close a ticket from my HTML Site with a normal form. So im trying to build the ticket close window.

My Code for that is the following:

Code: Select all

<form id="Compose" class="Validate PreventMultipleSubmits" name="compose" enctype="multipart/form-data" method="post" action="http://IP-Address/otrs/index.pl">
     	<input type="hidden" value="AgentTicketClose" name="Action" />
		<input type="hidden" value="Store" name="Subaction" />
		<input type="hidden" value="248" name="TicketID" />
		<input id="Subject" type="hidden" value="Close" name="Subject" />
		
		<textarea cols="78" rows="15" name="Body" ></textarea>
		
		<input  type="hidden" value="0" name="AttachmentUpload" />
		
		<select name="ArticleTypeID">
			<option selected="selected" value="9">note-intern</option>
		</select>
		
		<select id="NewStateID" name="NewStateID">
			<option value="3">erfolglos geschlossen</option>
			<option selected="selected" value="2">closed succesful</option>
		</select>
		
		<input id="TimeUnits" class="Validate_TimeUnits " type="text" value="25" name="TimeUnits" />
		
		<input type="submit" value="Close It" />
</form>
When i run this code and submit the form, i´ll get the following errormassage:

Code: Select all

Software error:

Invalid version format (non-numeric data) at /opt/otrs/bin/cgi-bin/../../Kernel/System/Log.pm line 160.

For help, please send mail to the webmaster ([no address given]), giving this error message and the time and date of the error. 
Does anyone know how to close a ticket on that way?

Thanks for answers at all...

Greetings
OTRS: 3.0.6
OS: SuSE
Module: Apache2, MySQL

Test: OTRS: 3.1.3
OS: SuSE
Module: Apache2, MySQL

Die deutsche Rechtschreibung ist Freeware, Du darfst sie kostenlos nutzen. Allerdings ist sie nicht Open Source, d.h. Du darfst sie nicht verändern oder in veränderter Form veröffentlichen.
Post Reply