[Rt-commit] [rtir] 02/02: Convert RTFM updates to RT::Articles updates

Jim Brandt jbrandt at bestpractical.com
Fri Jun 21 08:03:44 EDT 2013


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

jbrandt pushed a commit to branch 2.9/dont-require-rtfm-for-1.9.0-upgrade
in repository rtir.

commit 6ce104dbe05139f095e4d646c2ab01e28f02a294
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Jun 21 08:02:35 2013 -0400

    Convert RTFM updates to RT::Articles updates
---
 etc/upgrade/1.9.0/content | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/etc/upgrade/1.9.0/content b/etc/upgrade/1.9.0/content
index 3e8bdd9..a27421d 100644
--- a/etc/upgrade/1.9.0/content
+++ b/etc/upgrade/1.9.0/content
@@ -497,11 +497,10 @@ push @ACL, (
     my $CurrentUser = RT::CurrentUser->new();
     $CurrentUser->LoadByName('RT_System');
 
-    require RT::FM::Class;
-    my $class = RT::FM::Class->new($CurrentUser);
+    my $class = RT::Class->new($CurrentUser);
     $class->Load('Templates');
     unless ($class->Id) {
-        print "  Creating 'Templates' RTFM class..";
+        print "  Creating 'Templates' class for Articles...";
         my ($id, $msg) = $class->Create(
             Name => 'Templates',
             Description => 'Response templates',
@@ -513,13 +512,14 @@ push @ACL, (
 
     my $response = RT::CustomField->new($CurrentUser);
     $response->Load('Response');
-    unless ($response->Id and $response->LookupType eq RT::FM::Article->CustomFieldLookupType) {
-        print "  Creating 'Response' RTFM custom field..";
+    unless ($response->Id and $response->LookupType eq RT::Article->CustomFieldLookupType) {
+        print "  Creating 'Response' Article custom field..";
         my ($id, $msg) = $response->Create(
             Name => 'Response',
             Type => 'Text',
+            MaxValues => 1,
             Description => 'Response to be inserted into the ticket',
-            LookupType => RT::FM::Article->CustomFieldLookupType,
+            LookupType => RT::Article->CustomFieldLookupType,
         );
         die $msg unless $id;
         print "Done\n";

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


More information about the Rt-commit mailing list