[Rt-commit] rtir branch, 2.6/unique-cf-ids, created. 2.6.0-17-gb778d01

Kevin Falcone falcone at bestpractical.com
Fri Mar 4 11:42:55 EST 2011


The branch, 2.6/unique-cf-ids has been created
        at  b778d01aafccee3f6447e4c94e49e2da29228967 (commit)

- Log -----------------------------------------------------------------
commit 30755f998476714c3bb78fc62791b668b45d9fc2
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Mar 4 11:40:51 2011 -0500

    bump MIRTx version to 0.27

diff --git a/inc/Module/Install/RTx.pm b/inc/Module/Install/RTx.pm
index b780a6c..f027f78 100644
--- a/inc/Module/Install/RTx.pm
+++ b/inc/Module/Install/RTx.pm
@@ -8,7 +8,7 @@ no warnings 'once';
 
 use Module::Install::Base;
 use base 'Module::Install::Base';
-our $VERSION = '0.25';
+our $VERSION = '0.27';
 
 use FindBin;
 use File::Glob     ();
@@ -60,6 +60,7 @@ sub RTx {
     my $local_lib_path = "$RT::LocalPath/lib";
     print "Using RT configuration from $INC{'RT.pm'}:\n";
     unshift @INC, "$RT::LocalPath/lib" if $RT::LocalPath;
+    unshift @INC, $lib_path;
 
     $RT::LocalVarPath  ||= $RT::VarPath;
     $RT::LocalPoPath   ||= $RT::LocalLexiconPath;
@@ -189,4 +190,4 @@ sub RTxInit {
 
 __END__
 
-#line 303
+#line 304

commit b778d01aafccee3f6447e4c94e49e2da29228967
Author: Kevin Falcone <falcone at bestpractical.com>
Date:   Fri Mar 4 11:41:21 2011 -0500

    Ensure that we have unique custom field dom ids
    
    When we have two tickets being created on the same page (such as
    launching an Incident, which also has Run an Investigation) we end up
    with identical cflabel-7 and cfentry-7 <td>s

diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index 9cbc609..b75a030 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -201,6 +201,7 @@ unless ( exists $ARGS{'Content'} ) {
     Queue => 'Investigations',
     Status => 'new',
     SkipField => { Owner => 1, Attachments => 1, DateFields => 1 },
+    CFIDPrefix => 'investigation-',
 &>
 <& /Elements/Submit,
     Name => 'CreateWithInvestigation',
diff --git a/html/RTIR/Investigation/Elements/Create b/html/RTIR/Investigation/Elements/Create
index 3af49af..ce2d1d5 100644
--- a/html/RTIR/Investigation/Elements/Create
+++ b/html/RTIR/Investigation/Elements/Create
@@ -57,6 +57,7 @@ email addresses. These people <b>will</b> receive future updates.)</&></font></i
     NamePrefix => $NamePrefix,
     TicketObj  => $ARGS{'TicketObj'},
     QueueObj   => $QueueObj,
+    CFIDPrefix => $ARGS{'CFIDPrefix'},
 &></td></tr>
 % } }
 
@@ -152,6 +153,7 @@ if ( RT->Config->Get('GnuPG')->{'Enable'} ) {
 <%ARGS>
 $NamePrefix => '',
 $DefaultsNamePrefix => undef
+$CFIDPrefix => ''
 </%ARGS>
 <%INIT>
 if ( defined $NamePrefix && length $NamePrefix ) {

-----------------------------------------------------------------------


More information about the Rt-commit mailing list