Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Elastic-Model CPAN distribution.

Report information
The Basics
Id: 87300
Status: new
Priority: 0/
Queue: Elastic-Model

People
Owner: Nobody in particular
Requestors: rurban [...] x-ray.at
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Attachments


Subject: [PATCH] wrong return precedence
Download (untitled) / with headers
text/plain 133b
returns binds stronger than or, so the expressions after or are ignored. See https://rt.perl.org/rt3/Public/Bug/Display.html?id=59802
Subject: Elastic-Model-0.26-returnor.patch
diff -bu ./lib/Elastic/Model/Meta/Class/Doc.pm~ ./lib/Elastic/Model/Meta/Class/Doc.pm --- ./lib/Elastic/Model/Meta/Class/Doc.pm~ 2013-05-08 14:30:06.000000000 -0500 +++ ./lib/Elastic/Model/Meta/Class/Doc.pm 2013-07-25 08:17:09.536402358 -0500 @@ -91,7 +91,7 @@ . $self->_inline_generate_instance( '$instance', '"' . $self->name . '"' ) . 'return $instance' . '}'; - return eval($src) or croak $@; + return eval($src) || croak $@; } #===================================


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.