diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 1e227b391..b9e91d82e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ - Allow specific expirations for groups in userImport.pl - fixed #12164: Calendar feeds with tons of ;adminId=XXXXXX added - fixed #12167: Calendar Next/Prev Month/Year confusion + - fixed #12172: Underground User Style template shows up in Style wizard during site creation 7.10.18 - fixed #12138: Version tag gets create by entering and direct leaving diff --git a/docs/upgrades/packages-7.10.19/style-underground_top-navigation.wgpkg b/docs/upgrades/packages-7.10.19/style-underground_top-navigation.wgpkg new file mode 100644 index 000000000..96c6cc189 Binary files /dev/null and b/docs/upgrades/packages-7.10.19/style-underground_top-navigation.wgpkg differ diff --git a/docs/upgrades/upgrade_7.10.18-7.10.19.pl b/docs/upgrades/upgrade_7.10.18-7.10.19.pl index 434bdf18d..77dd98cb7 100644 --- a/docs/upgrades/upgrade_7.10.18-7.10.19.pl +++ b/docs/upgrades/upgrade_7.10.18-7.10.19.pl @@ -35,6 +35,7 @@ my $session = start(); # this line required # upgrade functions go here addTicketLimitToBadgeGroup( $session ); fixBrokenCalendarFeedUrls ( $session ); +removeUndergroundUserStyleTemplate ( $session ); finish($session); # this line required @@ -67,6 +68,21 @@ sub fixBrokenCalendarFeedUrls { print "DONE!\n" unless $quiet; } +#---------------------------------------------------------------------------- +# Add a ticket limit to badges in a badge group +sub removeUndergroundUserStyleTemplate { + my $session = shift; + print "\tRemove Underground User Style template... " unless $quiet; + if ($session->setting->get('userFunctionStyleId') eq 'zfDnOJgeiybz9vnmoEXRXA') { + $session->setting->set('userFunctionStyleId', 'Qk24uXao2yowR6zxbVJ0xA'); + } + my $underground_user = WebGUI::Asset->newByDynamicClass($session, 'zfDnOJgeiybz9vnmoEXRXA'); + if ($underground_user) { + $underground_user->purge; + } + print "DONE!\n" unless $quiet; +} + #---------------------------------------------------------------------------- # Add a ticket limit to badges in a badge group sub addTicketLimitToBadgeGroup {