[Rt-commit] r6124 - in rtir/branches/2.1-EXPERIMENTAL: html/RTIR html/RTIR/Incident/Elements

ruz at bestpractical.com ruz at bestpractical.com
Fri Sep 29 13:34:44 EDT 2006


Author: ruz
Date: Fri Sep 29 13:34:43 2006
New Revision: 6124

Modified:
   rtir/branches/2.1-EXPERIMENTAL/   (props changed)
   rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Create.html
   rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Elements/Create

Log:
 r1664 at cubic-pc:  cubic | 2006-09-29 21:43:17 +0400
 * set constituency on create during linking instead of scrips fu.


Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Create.html
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Create.html	(original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Create.html	Fri Sep 29 13:34:43 2006
@@ -150,6 +150,11 @@
          Name     => 'Constituency',
          Default  => scalar RT->Config->Get('_RTIR_Constituency_default') &>
 % } else {
+% #TODO: hacks, we need way to define CF value on Create, but don't allow user to change it
+%   my $cf = RT::CustomField->new( $RT::SystemUser );
+%   $cf->LoadByNameAndQueue( Name => '_RTIR_Constituency', Queue => $Queue );
+      <input type="hidden" class="hidden" name="Object-RT::Ticket--CustomField-<% $cf->id %>-Values-Magic" value="1" />
+      <input type="hidden" class="hidden" name="Object-RT::Ticket--CustomField-<% $cf->id %>-Values" value="<% $IncidentObj->FirstCustomFieldValue('_RTIR_Constituency') %>" />
       <& /RTIR/Elements/ShowRTIRField, Ticket => $IncidentObj, Name => 'Constituency' &>
 % }
     </td>

Modified: rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Elements/Create
==============================================================================
--- rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Elements/Create	(original)
+++ rtir/branches/2.1-EXPERIMENTAL/html/RTIR/Incident/Elements/Create	Fri Sep 29 13:34:43 2006
@@ -47,6 +47,11 @@
     Rows     => 1,
 &>
 % } else {
+% #TODO: hacks, we need way to define CF value on Create, but don't allow user to change it
+% my $cf = RT::CustomField->new( $RT::SystemUser );
+% $cf->LoadByNameAndQueue( Name => '_RTIR_Constituency', Queue => 'Incidents' );
+<input type="hidden" class="hidden" name="Object-RT::Ticket--CustomField-<% $cf->id %>-Values-Magic" value="1" />
+<input type="hidden" class="hidden" name="Object-RT::Ticket--CustomField-<% $cf->id %>-Values" value="<% $ChildObj->FirstCustomFieldValue('_RTIR_Constituency') %>" />
 <& /RTIR/Elements/ShowRTIRField, Ticket => $ChildObj, Name => 'Constituency' &>
 % }
 </td></tr>


More information about the Rt-commit mailing list