From f569c82dd695c5b9ec43d517ad563e42958a78dc Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Wed, 21 Aug 2013 08:51:12 +0200 Subject: [PATCH] adapt search data structure to older versions of DBIx::Class we would require 0.08250 to omit this --- lib/NGCP/Panel/Utils/Datatables.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/NGCP/Panel/Utils/Datatables.pm b/lib/NGCP/Panel/Utils/Datatables.pm index 367b828fed..eea4643ca3 100644 --- a/lib/NGCP/Panel/Utils/Datatables.pm +++ b/lib/NGCP/Panel/Utils/Datatables.pm @@ -47,7 +47,7 @@ sub process { # avoid amigious column names if we have the same column in different joined tables my $name = _get_joined_column_name($col->{name}); my $stmt = { $name => { like => '%'.$searchString.'%' } }; - $stmt = \[$col->{literal_sql} . " LIKE ?", '%'.$searchString.'%'] + $stmt = \[$col->{literal_sql} . " LIKE ?", [ {} => '%'.$searchString.'%'] ] if $col->{literal_sql}; push @searchColumns, $stmt if $col->{search}; }