[Rt-commit] rtir branch, 2.4-trunk, updated. a89be41bcdceb022a1d8139cbd5f9dbf42aaedfb

Ruslan Zakirov ruz at bestpractical.com
Mon Aug 10 08:30:47 EDT 2009


The branch, 2.4-trunk has been updated
       via  a89be41bcdceb022a1d8139cbd5f9dbf42aaedfb (commit)
       via  da33f7befe75bfa91c73389f9ce9bc78cc2ad97d (commit)
      from  71646c5d3630d74c5a5184375c859c9e59a3dac6 (commit)

Summary of changes:
 CHANGES                            |    4 ++++
 Makefile.PL                        |    4 ++--
 README                             |    8 ++++----
 html/RTIR/Advanced.html            |    4 ++--
 html/RTIR/Elements/PickRestriction |    2 +-
 html/RTIR/Incident/Create.html     |   13 +++++++++++--
 html/RTIR/Incident/Display.html    |    2 +-
 html/RTIR/Incident/Edit.html       |    2 +-
 8 files changed, 26 insertions(+), 13 deletions(-)

- Log -----------------------------------------------------------------
commit da33f7befe75bfa91c73389f9ce9bc78cc2ad97d
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date:   Mon Aug 10 16:23:29 2009 +0400

    * use SelectPriority component
    
    RT 3.8.3 and newer have priority widget we should use

diff --git a/html/RTIR/Advanced.html b/html/RTIR/Advanced.html
index 7a42c94..a234bab 100644
--- a/html/RTIR/Advanced.html
+++ b/html/RTIR/Advanced.html
@@ -46,11 +46,11 @@
 
   <tr>
     <td class="label"><&|/l&>Priority</&>:</td>
-    <td class="value"><input name="Priority" value="<% $Ticket->Priority %>" size="5" /></td>
+    <td class="value"><&/Elements/SelectPriority, Name=>"Priority", Default=>$Ticket->Priority &></td>
   </tr>
   <tr>
     <td class="label"><&|/l&>Final Priority</&>:</td>
-    <td class="value"><input name="FinalPriority" value="<% $Ticket->FinalPriority %>" size="5" /></td>
+    <td class="value"><&/Elements/SelectPriority, Name=>"FinalPriority", Default=>$Ticket->FinalPriority &></td>
   </tr>
 </table>
 </&>
diff --git a/html/RTIR/Elements/PickRestriction b/html/RTIR/Elements/PickRestriction
index 86c8609..824ec49 100644
--- a/html/RTIR/Elements/PickRestriction
+++ b/html/RTIR/Elements/PickRestriction
@@ -47,7 +47,7 @@
 
 <li><&|/l&>Priority</&> <& /Elements/SelectEqualityOperator, Name => "PriorityOp" &>
 
-<input name="ValueOfPriority" size="5" />
+<&/Elements/SelectPriority, Name=>"ValueOfPriority" &>
 
 <li>
 <&|/l&>Date</&> 
diff --git a/html/RTIR/Incident/Create.html b/html/RTIR/Incident/Create.html
index aaf6931..82ac3d7 100644
--- a/html/RTIR/Incident/Create.html
+++ b/html/RTIR/Incident/Create.html
@@ -135,10 +135,19 @@ unless ( exists $ARGS{'Content'} ) {
 &>
 <table border="0">
     <tr><td align="right"><&|/l&>Priority</&>:</td>
-    <td><input size="3" name="InitialPriority" value="<% $ARGS{InitialPriority} || $QueueObj->InitialPriority %>" /></td></tr>
+    <td>
+<& /Elements/SelectPriority,
+    Name => "InitialPriority",
+    Default => $ARGS{InitialPriority} ? $ARGS{InitialPriority} : $QueueObj->InitialPriority,
+&></td></tr>
 
     <tr><td align="right"><&|/l&>Final Priority</&>:</td>
-    <td><input size="3" name="FinalPriority" value="<% $ARGS{FinalPriority} || $QueueObj->FinalPriority %>" /></td></tr>
+    <td>
+<& /Elements/SelectPriority,
+    Name => "FinalPriority",
+    Default => $ARGS{FinalPriority} ? $ARGS{FinalPriority} : $QueueObj->FinalPriority,
+&>
+</td></tr>
 
     <tr><td align="right"><&|/l&>Time Worked</&>:</td>
     <td><input size="3" name="TimeWorked" value="<% $ARGS{TimeWorked} || '0' %>" /></td></tr>
diff --git a/html/RTIR/Incident/Display.html b/html/RTIR/Incident/Display.html
index 1f03b72..512ac93 100644
--- a/html/RTIR/Incident/Display.html
+++ b/html/RTIR/Incident/Display.html
@@ -71,7 +71,7 @@
   </tr>
   <tr>
     <td class="label"><&|/l&>Priority</&>:</td>
-    <td class="value"><%$TicketObj->Priority %></td>
+    <td class="value"><& /Ticket/Elements/ShowPriority, Ticket => $TicketObj &></td>
   </tr>
   <tr>
     <td class="label"><&|/l&>Time Worked</&>:</td>
diff --git a/html/RTIR/Incident/Edit.html b/html/RTIR/Incident/Edit.html
index 2bcbf42..9ba56c8 100644
--- a/html/RTIR/Incident/Edit.html
+++ b/html/RTIR/Incident/Edit.html
@@ -80,7 +80,7 @@
   </tr>
   <tr>
     <td class="label"><&|/l&>Priority</&>:</td>
-    <td class="value"><input name="Priority" value="<%$Ticket->Priority|h%>" size="5" /></td>
+    <td class="value"><&/Elements/SelectPriority, Name=>"Priority", Default=>$Ticket->Priority &></td>
   </tr>
   <tr>
     <td class="label"><&|/l&>Time Worked</&>:</td>

commit a89be41bcdceb022a1d8139cbd5f9dbf42aaedfb
Author: Ruslan Zakirov <Ruslan.Zakirov at gmail.com>
Date:   Mon Aug 10 16:29:51 2009 +0400

    * update docs: changes, makefile and readme

diff --git a/CHANGES b/CHANGES
index 265bf69..3bf4409 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,10 @@
 CHANGES IN 2.4.2
 ----------------
 
+FEATURES
+========
+* use priority widget from RT 3.8.3 in RTIR
+
 BUGS
 ====
 
diff --git a/Makefile.PL b/Makefile.PL
index 6614752..5271a20 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -7,8 +7,8 @@ version_from('lib/RT/IR.pm');
 
 { # check RT version
     my @v = split /\./, "$RT::VERSION";
-    unless ($v[0]>=3 && $v[1]>=8 && ($v[2]>=1 || $v[2]eq'HEAD')) {
-        die "RTIR 2.4 and newer needs RT 3.8.1 at least, you have $RT::VERSION";
+    unless ($v[0]>=3 && $v[1]>=8 && ($v[2]>=3 || $v[2]eq'HEAD')) {
+        die "RTIR 2.4.2 and newer needs RT 3.8.3 at least, you have $RT::VERSION";
     }
 }
 
diff --git a/README b/README
index 896360f..b688d92 100644
--- a/README
+++ b/README
@@ -14,8 +14,8 @@ or RTIR, please contact Best Practical at sales at bestpractical.com.
 REQUIRED PACKAGES:
 ------------------
 
-o   RT 3.8.1 or later, configured, installed and tested.
-o   RTFM 2.4.0RC1 or later, configured, installed and tested.
+o   RT 3.8.3 or later, configured, installed and tested.
+o   RTFM 2.4.1 or later, configured, installed and tested.
 
 
 Upgrade instructions:
@@ -29,9 +29,9 @@ information.
 Installation instructions:
 --------------------------
 
-1) Install RT 3.8.1 or newer following RT's regular installation instructions
+1) Install RT 3.8.3 or newer following RT's regular installation instructions
 
-2) Install RTFM 2.4.1RC1 or nerwer, following the installation instructions
+2) Install RTFM 2.4.1 or nerwer, following the installation instructions
    in RTFM's README file. (Don't forget to run "make initdb" to set up the 
    database for RTFM and activate it using @Plugins option in the RT config); 
 

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


More information about the Rt-commit mailing list