[Rt-commit] rt branch, 4.0/apply-scrips-to-multiple-queues, updated. rt-4.0.4-232-gbedfcdf

Thomas Sibley trs at bestpractical.com
Thu Nov 1 18:58:47 EDT 2012


The branch, 4.0/apply-scrips-to-multiple-queues has been updated
       via  bedfcdfe2742f912f4136b422c23712644f934d6 (commit)
       via  e27c018769e217e077338abb788db2179c78c067 (commit)
      from  1c9bbd14eee270f32f341301aa429d7890c329ae (commit)

Summary of changes:
 etc/RT_Config.pm.in   | 2 +-
 lib/RT/CustomField.pm | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

- Log -----------------------------------------------------------------
commit e27c018769e217e077338abb788db2179c78c067
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Nov 1 15:37:47 2012 -0700

    Switch to the new column map name AddedTo in the default format

diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in
index d8e8780..395c724 100755
--- a/etc/RT_Config.pm.in
+++ b/etc/RT_Config.pm.in
@@ -2463,7 +2463,7 @@ Set(%AdminSearchResultFormat,
     CustomFields =>
         q{'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__id__</a>/TITLE:#'}
         .q{,'<a href="__WebPath__/Admin/CustomFields/Modify.html?id=__id__">__Name__</a>/TITLE:Name'}
-        .q{,__AppliedTo__, __FriendlyType__, __FriendlyPattern__},
+        .q{,__AddedTo__, __FriendlyType__, __FriendlyPattern__},
 
     Scrips =>
         q{'<a href="__WebPath__/Admin/Scrips/Modify.html?id=__id__">__id__</a>/TITLE:#'}

commit bedfcdfe2742f912f4136b422c23712644f934d6
Author: Thomas Sibley <trs at bestpractical.com>
Date:   Thu Nov 1 15:39:35 2012 -0700

    carp() deprecation warnings for easier tracing to the origin callsite

diff --git a/lib/RT/CustomField.pm b/lib/RT/CustomField.pm
index 5221d48..a52ee91 100644
--- a/lib/RT/CustomField.pm
+++ b/lib/RT/CustomField.pm
@@ -1197,7 +1197,7 @@ sub IsOnlyGlobal {
     return ($self->LookupType =~ /^RT::(?:Group|User)/io);
 
 }
-sub ApplyGlobally { warn "DEPRECATED, use IsOnlyGlobal"; return shift->IsOnlyGlobal(@_) }
+sub ApplyGlobally { Carp::carp("DEPRECATED, use IsOnlyGlobal"); return shift->IsOnlyGlobal(@_) }
 
 =head1 AddedTo
 
@@ -1214,7 +1214,7 @@ sub AddedTo {
     return RT::ObjectCustomField->new( $self->CurrentUser )
         ->AddedTo( CustomField => $self );
 }
-sub AppliedTo { warn "DEPRECATED: use AddedTo"; shift->AddedTo(@_) };
+sub AppliedTo { Carp::carp("DEPRECATED: use AddedTo"); shift->AddedTo(@_) };
 
 =head1 NotAddedTo
 
@@ -1231,7 +1231,7 @@ sub NotAddedTo {
     return RT::ObjectCustomField->new( $self->CurrentUser )
         ->NotAddedTo( CustomField => $self );
 }
-sub NotAppliedTo { warn "DEPRECATED: use NotAddedTo"; shift->NotAddedTo(@_) };
+sub NotAppliedTo { Carp::carp("DEPRECATED: use NotAddedTo"); shift->NotAddedTo(@_) };
 
 =head2 IsAdded
 
@@ -1249,7 +1249,7 @@ sub IsAdded {
     return undef unless $ocf->id;
     return $ocf;
 }
-sub IsApplied { warn "DEPRECATED: use IsAdded"; shift->IsAdded(@_) };
+sub IsApplied { Carp::carp("DEPRECATED: use IsAdded"); shift->IsAdded(@_) };
 
 =head2 IsAddedToAny
 

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


More information about the Rt-commit mailing list