[Rt-commit] '' 01/01: Add warnings for changed search formats.

Jim Brandt jbrandt at bestpractical.com
Fri Apr 26 15:12:32 EDT 2013


This is an automated email from the git hooks/post-receive script.

jbrandt pushed a commit to branch 2.9/warn-on-old-search-formats
in repository rtir.

commit f37b26849ebd3b6ca33dc0b1606e846038d3502f
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Apr 26 15:11:58 2013 -0400

    Add warnings for changed search formats.
---
 html/RTIR/Search/Results.html | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/html/RTIR/Search/Results.html b/html/RTIR/Search/Results.html
index 22003a5..5a71c9b 100644
--- a/html/RTIR/Search/Results.html
+++ b/html/RTIR/Search/Results.html
@@ -68,6 +68,22 @@ my $title = loc("Results");
 
 my $Type = RT::IR::TicketType( Queue => $Queue ) || '';
 $Format ||= RT->Config->Get('RTIRSearchResultFormats')->{ $Type . 'Default' };
+
+my @formats = split /,/, $Format;
+
+if ( grep { /__CustomField.\{State\}__/ } @formats ){
+    RT::Logger->warning('The custom field State has been replaced with the RT Status field.'
+                        . ' You should update your custom search result formats accordingly.'
+                        . ' See the UPGRADING file and the $RTIRSearchResultFormats option'
+                        . ' in the default RTIR_Config.pm file.');
+}
+
+if ( grep { /__CustomField.\{_RTIR_(\w+)\}__/ } @formats ){
+    RT::Logger->warning('The _RTIR_ prefix has been removed from all RTIR custom fields.'
+                        . ' You should update your custom search result formats accordingly.'
+                        . ' See the UPGRADING file for details.');
+}
+
 if ( $Type ) {
     $BaseQuery ||= RT::IR->Query( Queue => $Queue );
     $Query     ||= RT::IR->ActiveQuery( Queue => $Queue );

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Rt-commit mailing list