Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bestpractical/rt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsunnavy <sunnavy@bestpractical.com>2022-01-07 17:07:49 +0300
committersunnavy <sunnavy@bestpractical.com>2022-01-07 17:14:45 +0300
commitfe82d32ed231979b33465beb3bfa2a18675ad5b7 (patch)
treeac1e3da19b314a387479ab89f63552f76fb822d2
parent4343dd186e163c715175a337e89eb13c9992dab0 (diff)
Ignore HotList column for RT::Class on importing5.0/importer-ignore-class-hotlist
HotList column has been dropped since RT 5, if we import seralized data from RT 4, we could get the following error: ERROR: column "hotlist" does not exist This commit deletes HotList column in PreInflate to get rid of this issue. Note that we need to do this in RT::Record instead of RT::Class to cover both "clone" and "non-clone" modes of rt-serializer.
-rw-r--r--lib/RT/Record.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index 3b6a3368cb..b49e3178aa 100644
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -2863,6 +2863,9 @@ sub PreInflate {
my $class = shift;
my ($importer, $uid, $data) = @_;
+ # In case it's RT::Class from RT 4 that has HotList column
+ delete $data->{HotList} if $uid =~ /^RT::Class-/;
+
my $ca = $class->_ClassAccessible;
my %ca = %{ $ca };