[Rt-commit] rt branch, 4.0/warn-active-status, created. rt-4.0.1rc1-11-gda3122a

Alex Vandiver alexmv at bestpractical.com
Mon Jun 6 12:42:15 EDT 2011


The branch, 4.0/warn-active-status has been created
        at  da3122a58e0549b0cef8308ed8fddeaf8781bc72 (commit)

- Log -----------------------------------------------------------------
commit da3122a58e0549b0cef8308ed8fddeaf8781bc72
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Mon Jun 6 12:41:46 2011 -0400

    Warn on setting of ActiveStatus or InactiveStatus
    
    These are some of the most commonly set configuration options which are
    removed in RT 4; provide some user-visible warning about them.

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 3cd5b87..aa8a02b 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -721,6 +721,31 @@ our %META = (
             }
         },
     },
+
+    ActiveStatus => {
+        Type => 'ARRAY',
+        PostLoadCheck => sub {
+            my $self  = shift;
+            return unless shift;
+            warn <<EOT;
+The ActiveStatus configuration has been replaced by the new Lifecycles
+for functionality.  You should set the 'active' property of the
+'default' lifecycle; see RT_Config.pm for documentation.
+EOT
+        },
+    },
+    InactiveStatus => {
+        Type => 'ARRAY',
+        PostLoadCheck => sub {
+            my $self  = shift;
+            return unless shift;
+            warn <<EOT;
+The InactiveStatus configuration has been replaced by the new Lifecycles
+for functionality.  You should set the 'inactive' property of the
+'default' lifecycle; see RT_Config.pm for documentation.
+EOT
+        },
+    },
 );
 my %OPTIONS = ();
 

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


More information about the Rt-commit mailing list