Skip Menu |
 

This queue is for tickets about the Dancer-Plugin-ElasticSearch CPAN distribution.

Report information
The Basics
Id: 87353
Status: new
Priority: 0/
Queue: Dancer-Plugin-ElasticSearch

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
Dancer-Plugin-ElasticSearch-0.002-returnor.patch



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: Dancer-Plugin-ElasticSearch-0.002-returnor.patch
diff -bu Dancer-Plugin-ElasticSearch-0.002-3UgduD/lib/Dancer/Plugin/ElasticSearch.pm~ Dancer-Plugin-ElasticSearch-0.002-3UgduD/lib/Dancer/Plugin/ElasticSearch.pm --- Dancer-Plugin-ElasticSearch-0.002-3UgduD/lib/Dancer/Plugin/ElasticSearch.pm~ 2011-09-02 06:58:46.000000000 -0500 +++ Dancer-Plugin-ElasticSearch-0.002-3UgduD/lib/Dancer/Plugin/ElasticSearch.pm 2013-07-26 09:49:35.276482873 -0500 @@ -11,7 +11,7 @@ my $Connection; register elsearch => sub { - return $Connection or _create_connection(); + return $Connection || _create_connection(); }; sub _create_connection {


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.