Added tests to cover userStyle.
fixed a bug in userStyle where it would not process data that was false. process will do this, so I made userStyle do it as well by adding in a definedness check on $output.
This commit is contained in:
parent
01a09cbea9
commit
514c2263fc
2 changed files with 60 additions and 6 deletions
|
|
@ -423,7 +423,7 @@ sub userStyle {
|
|||
my $self = shift;
|
||||
my $output = shift;
|
||||
$self->session->http->setCacheControl("none");
|
||||
if ($output) {
|
||||
if (defined $output) {
|
||||
return $self->process($output,$self->session->setting->get("userFunctionStyleId"));
|
||||
} else {
|
||||
return undef;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue