[Rt-commit] r5679 - in rt/branches/3.7-EXPERIMENTAL: .
ruz at bestpractical.com
ruz at bestpractical.com
Wed Aug 2 15:43:50 EDT 2006
Author: ruz
Date: Wed Aug 2 15:43:48 2006
New Revision: 5679
Modified:
rt/branches/3.7-EXPERIMENTAL/ (props changed)
rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay.pm
rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay_SQL.pm
Log:
r3572 at cubic-pc: cubic | 2006-08-01 20:21:38 +0400
* make dispatchers, can_bundle and fields metadata hashes 'our'
fields so we could share them between Overlay and Overlay_SQL
files. Without this change we wasn't able to add dispatcher
or wrap existant.
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay.pm Wed Aug 2 15:43:48 2006
@@ -98,7 +98,7 @@
# FIELD_METADATA is a mapping of searchable Field name, to Type, and other
# metadata.
-my %FIELD_METADATA = (
+our %FIELD_METADATA = (
Status => [ 'ENUM', ],
Queue => [ 'ENUM' => 'Queue', ],
Type => [ 'ENUM', ],
@@ -148,7 +148,7 @@
);
# Mapping of Field Type to Function
-my %dispatch = (
+our %dispatch = (
ENUM => \&_EnumLimit,
INT => \&_IntLimit,
LINK => \&_LinkLimit,
@@ -161,7 +161,7 @@
LINKFIELD => \&_LinkFieldLimit,
CUSTOMFIELD => \&_CustomFieldLimit,
);
-my %can_bundle = ();# WATCHERFIELD => "yes", );
+our %can_bundle = ();# WATCHERFIELD => "yes", );
# Default EntryAggregator per type
# if you specify OP, you must specify all valid OPs
Modified: rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay_SQL.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay_SQL.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL/lib/RT/Tickets_Overlay_SQL.pm Wed Aug 2 15:43:48 2006
@@ -53,9 +53,7 @@
# Import configuration data from the lexcial scope of __PACKAGE__ (or
# at least where those two Subroutines are defined.)
-my %FIELD_METADATA = %{FIELDS()};
-my %dispatch = %{dispatch()};
-my %can_bundle = %{can_bundle()};
+our (%FIELD_METADATA, %dispatch, %can_bundle);
# Lower Case version of FIELDS, for case insensitivity
my %lcfields = map { ( lc($_) => $_ ) } (keys %FIELD_METADATA);
More information about the Rt-commit
mailing list