From a695fa9c6e448c3be77c55321f3584b6a95fc1d0 Mon Sep 17 00:00:00 2001
From: arnaud <arnaud.saint-patrice@atm-consulting.fr>
Date: Thu, 29 Jun 2017 14:36:10 +0200
Subject: [PATCH] FIX holidays with postgresql like on rowid integer

---
 htdocs/holiday/list.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index 90db40fd2e7..53430f0b6e1 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -70,7 +70,6 @@ $type            = GETPOST('type','int');
 
 // List of fields to search into when doing a "search in all"
 $fieldstosearchall = array(
-    'cp.rowid'=>'Ref',
     'cp.description'=>'Description',
     'uu.lastname'=>'EmployeeLastname',
     'uu.firstname'=>'EmployeeFirstname'
@@ -124,7 +123,7 @@ $order = $db->order($sortfield,$sortorder).$db->plimit($limit + 1, $offset);
 // WHERE
 if(!empty($search_ref))
 {
-    $filter.= " AND cp.rowid LIKE '%".$db->escape($search_ref)."%'\n";
+    $filter.= " AND cp.rowid = ".$db->escape($search_ref);
 }
 
 // DATE START
-- 
GitLab