[Rt-commit] rt branch, 4.2/deprecated-method, updated. rt-4.1.5-210-g88efc51

Thomas Sibley trs at bestpractical.com
Fri Jan 4 00:40:34 EST 2013


The branch, 4.2/deprecated-method has been updated
       via  88efc51eb4cec799867b4fc8957e929a839fd168 (commit)
      from  69a612fac61cc5800761a59ed8f379697b01be83 (commit)

Summary of changes:
 lib/RT/CustomField.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit 88efc51eb4cec799867b4fc8957e929a839fd168
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Jan 3 21:32:46 2013 -0800

    Single and Multiple are suffixes not prefixes
    
    The regex is anchored to the end.

diff --git a/lib/RT/CustomField.pm b/lib/RT/CustomField.pm
index ec40354..450791f 100644
--- a/lib/RT/CustomField.pm
+++ b/lib/RT/CustomField.pm
@@ -750,7 +750,7 @@ sub ValidateType {
 
     if ( $type =~ s/(?:Single|Multiple)$// ) {
         RT->Deprecated(
-            Arguments => "prefix 'Single' or 'Multiple'",
+            Arguments => "suffix 'Single' or 'Multiple'",
             Instead   => "MaxValues",
             Remove    => "4.4",
         );
@@ -770,7 +770,7 @@ sub SetType {
     my $type = shift;
     if ($type =~ s/(?:(Single)|Multiple)$//) {
         RT->Deprecated(
-            Arguments => "prefix 'Single' or 'Multiple'",
+            Arguments => "suffix 'Single' or 'Multiple'",
             Instead   => "MaxValues",
             Remove    => "4.4",
         );

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


More information about the Rt-commit mailing list