From c341cf0b5b8f56f065ee47d8307bb150412b06c8 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 11 Jun 2008 03:17:31 +0000 Subject: [PATCH] make the admin console templates have unique titles --- docs/changelog/7.x.x.txt | 1 + docs/upgrades/upgrade_7.5.10-7.5.11.pl | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index c4cb6fdab..80911e232 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -104,6 +104,7 @@ - added: A thumbnail for Photo edit screen - added: Configure the amount of files shown per page in the Gallery - fix: Patch for Style.pm to identify which template failed to instantiate + - fix: Admin Console templates have the same title 7.5.10 - fix: Syntax error in GetCsMail diff --git a/docs/upgrades/upgrade_7.5.10-7.5.11.pl b/docs/upgrades/upgrade_7.5.10-7.5.11.pl index 72ed4cf49..70447dfb8 100644 --- a/docs/upgrades/upgrade_7.5.10-7.5.11.pl +++ b/docs/upgrades/upgrade_7.5.10-7.5.11.pl @@ -78,6 +78,7 @@ addNewApprovalActivities( $session ); addUserListWobject( $session ); addInheritUrlFromParent( $session ); addDefaultFilesPerPage( $session ); +fixAdminConsoleTemplateTitles( $session ); removeOldCommerceCode($session); finish($session); # this line required @@ -1705,6 +1706,15 @@ sub addInheritUrlFromParent { $session->db->write('alter table assetData add column inheritUrlFromParent int(11) not null default 0'); print "DONE!\n" unless $quiet; } + +#---------------------------------------------------------------------------- +sub fixAdminConsoleTemplateTitles { + my $session = shift; + print "\tMaking unique title for admin console templates... " unless $quiet; + my $ac = WebGUI::Asset->newByDynamicClass($session, 'PBtmpl0000000000000137'); + $ac->update({title => 'Admin Console Style'}); + print "DONE!\n" unless $quiet; +} # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------