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)



Subject: [PATCH] wrong return precedence
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 {