Skip to content

Commit

Permalink
Merge pull request #11805 from simnandez/10.0
Browse files Browse the repository at this point in the history
FIX #11804 list of tickets from a customer card display ALL tickets
  • Loading branch information
eldy committed Sep 3, 2019
2 parents 931380c + b45d3ea commit 19f9d03
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions htdocs/ticket/list.php
Expand Up @@ -2,6 +2,7 @@
/* Copyright (C) 2013-2018 Jean-François FERRY <hello@librethic.io>
* Copyright (C) 2016 Christophe Battarel <christophe@altairis.fr>
* Copyright (C) 2018 Regis Houssin <regis.houssin@inodbox.com>
* Copyright (C) 2019 Juanjo Menent <jmenent@2byte.es>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -210,6 +211,11 @@
if (is_array($extrafields->attributes[$object->table_element]['label']) && count($extrafields->attributes[$object->table_element]['label'])) $sql.= " LEFT JOIN ".MAIN_DB_PREFIX.$object->table_element."_extrafields as ef on (t.rowid = ef.fk_object)";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON (t.fk_soc = s.rowid)";
$sql.= " WHERE t.entity IN (".getEntity($object->element).")";
if ($socid > 0)
{
$sql.= " AND t.fk_soc = ".$socid;
}

foreach($search as $key => $val)
{
if ($key == 'fk_statut')
Expand Down

0 comments on commit 19f9d03

Please sign in to comment.