Commit ce4e05fe authored by Jesse Vincent's avatar Jesse Vincent
Browse files

Fix on the plane was wrong. sigh

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/branches/QUEBEC-EXPERIMENTAL@2910 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent 440eb769
......@@ -157,11 +157,12 @@ content, try "LargeContent"
sub Content {
my $self = shift;
my $content = $self->SUPER::Content();
my $content = $self->SUPER::Content;
if (!$content && $self->ContentType eq 'text/plain') {
$content = $self->LargeContent();
return $self->LargeContent();
} else {
return $content;
}
return($content);
}
......
......@@ -117,6 +117,8 @@ sub HasEntry {
my $self = shift;
my $value = shift;
$RT::Logger->crit(" $self - looking for value $value");
#TODO: this could cache and optimize a fair bit.
foreach my $item (@{$self->ItemsArrayRef}) {
return(1) if ($item->Content eq $value);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment