Permalink
Browse files

On preview, create tag objects for private tags too, bugid:104556

  • Loading branch information...
1 parent d79822b commit 09242c9019d18e71abb65643c1fe04ffabd14d01 @semuel semuel committed May 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/MT/CMS/Entry.pm
View
@@ -1108,9 +1108,9 @@ sub _build_entry_preview {
if (@tag_names) {
my @tags;
foreach my $tag_name (@tag_names) {
- next if $tag_name =~ m/^@/;
my $tag = MT::Tag->new;
$tag->name($tag_name);
+ $tag->is_private($tag_name =~ m/^@/ ? 1 : 0);
push @tags, $tag;
}
$entry->{__tags} = \@tag_names;

0 comments on commit 09242c9

Please sign in to comment.