[Rt-commit] rt branch, 5.0/use-rest-modules-earlier, created. rt-5.0.0beta1-1-g46053b0546

? sunnavy sunnavy at bestpractical.com
Wed Oct 7 14:47:08 EDT 2020


The branch, 5.0/use-rest-modules-earlier has been created
        at  46053b0546ccf7eb8a08331a813b0b68b76d20ad (commit)

- Log -----------------------------------------------------------------
commit 46053b0546ccf7eb8a08331a813b0b68b76d20ad
Author: craig kaiser <craig at bestpractical.com>
Date:   Wed Jun 3 11:08:33 2020 -0400

    'use' REST2 in web handler as PSGIWrap there needs it
    
    We do "require" RT::REST2 in RT::InitClasses, but the method is not
    called in installer mode. This is to fix the error in installer mode:
    
        Undefined subroutine &RT::REST2::PSGIWrap called
    
    Fixes: I#36547

diff --git a/lib/RT/Interface/Web/Handler.pm b/lib/RT/Interface/Web/Handler.pm
index e34f5ae3b2..2f01b2f926 100644
--- a/lib/RT/Interface/Web/Handler.pm
+++ b/lib/RT/Interface/Web/Handler.pm
@@ -59,6 +59,7 @@ use HTML::Scrubber;
 use RT::Interface::Web;
 use RT::Interface::Web::Request;
 use RT::ObjectCustomFieldValues;
+use RT::REST2;
 use File::Path qw( rmtree );
 use File::Glob qw( bsd_glob );
 use File::Spec::Unix;

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


More information about the rt-commit mailing list