Skip to content

Commit

Permalink
Item10519: Only check Template for topic rename
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@11173 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Mar 21, 2011
1 parent d004fdc commit 336289d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/Foswiki/UI/Rename.pm
Expand Up @@ -1373,7 +1373,7 @@ sub _getReferringTopics {
);

# If the topic is a Template, search for set or meta that references it
if ( $om->topic() =~ m/(.*)Template$/ ) {
if ( $om->topic() && $om->topic() =~ m/(.*)Template$/ ) {
my $refre = '(VIEW|EDIT)_TEMPLATE.*';
$refre .= Foswiki::Render::getReferenceRE(
$om->web(), $1,
Expand Down

0 comments on commit 336289d

Please sign in to comment.