mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
remove no more used code
This commit is contained in:
parent
0278082f27
commit
6623a3c23d
|
|
@ -69,7 +69,7 @@ class BookKeeping extends CommonObject
|
|||
public $doc_date;
|
||||
|
||||
/**
|
||||
* @var int Deadline for payment
|
||||
* @var int|'' Deadline for payment
|
||||
*/
|
||||
public $date_lim_reglement;
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
/* Copyright (C) 2015 Jean-François Ferry <jfefe@aternatik.fr>
|
||||
* Copyright (C) 2019 Frédéric France <frederic.france@netlogic.fr>
|
||||
* Copyright (C) 2019-2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
|
|
@ -212,34 +212,34 @@ class Contacts extends DolibarrApi
|
|||
if ($category > 0) {
|
||||
// Search Contact Categories
|
||||
$searchCategoryContactList = $category ? array($category) : array();
|
||||
$searchCategoryContactOperator = 0;
|
||||
// $searchCategoryContactOperator = 0;
|
||||
// Search for tag/category ($searchCategoryContactList is an array of ID)
|
||||
if (!empty($searchCategoryContactList)) {
|
||||
$searchCategoryContactSqlList = array();
|
||||
$listofcategoryid = '';
|
||||
// $listofcategoryid = '';
|
||||
foreach ($searchCategoryContactList as $searchCategoryContact) {
|
||||
if (intval($searchCategoryContact) == -2) {
|
||||
$searchCategoryContactSqlList[] = "NOT EXISTS (SELECT ck.fk_socpeople FROM ".MAIN_DB_PREFIX."categorie_contact as ck WHERE t.rowid = ck.fk_socpeople)";
|
||||
} elseif (intval($searchCategoryContact) > 0) {
|
||||
if ($searchCategoryContactOperator == 0) {
|
||||
// if ($searchCategoryContactOperator == 0) {
|
||||
$searchCategoryContactSqlList[] = " EXISTS (SELECT ck.fk_socpeople FROM ".MAIN_DB_PREFIX."categorie_contact as ck WHERE t.rowid = ck.fk_socpeople AND ck.fk_categorie = ".((int) $searchCategoryContact).")";
|
||||
} else {
|
||||
$listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryContact);
|
||||
}
|
||||
// } else {
|
||||
// $listofcategoryid .= ($listofcategoryid ? ', ' : '') .((int) $searchCategoryContact);
|
||||
// }
|
||||
}
|
||||
}
|
||||
if ($listofcategoryid) {
|
||||
$searchCategoryContactSqlList[] = " EXISTS (SELECT ck.fk_socpeople FROM ".MAIN_DB_PREFIX."categorie_contact as ck WHERE t.rowid = ck.fk_socpeople AND ck.fk_categorie IN (".$this->db->sanitize($listofcategoryid)."))";
|
||||
}
|
||||
if ($searchCategoryContactOperator == 1) {
|
||||
if (!empty($searchCategoryContactSqlList)) {
|
||||
$sql .= " AND (".implode(' OR ', $searchCategoryContactSqlList).")";
|
||||
}
|
||||
} else {
|
||||
if (!empty($searchCategoryContactSqlList)) {
|
||||
$sql .= " AND (".implode(' AND ', $searchCategoryContactSqlList).")";
|
||||
}
|
||||
// if ($listofcategoryid) {
|
||||
// $searchCategoryContactSqlList[] = " EXISTS (SELECT ck.fk_socpeople FROM ".MAIN_DB_PREFIX."categorie_contact as ck WHERE t.rowid = ck.fk_socpeople AND ck.fk_categorie IN (".$this->db->sanitize($listofcategoryid)."))";
|
||||
// }
|
||||
// if ($searchCategoryContactOperator == 1) {
|
||||
// if (!empty($searchCategoryContactSqlList)) {
|
||||
// $sql .= " AND (".implode(' OR ', $searchCategoryContactSqlList).")";
|
||||
// }
|
||||
// } else {
|
||||
if (!empty($searchCategoryContactSqlList)) {
|
||||
$sql .= " AND (".implode(' AND ', $searchCategoryContactSqlList).")";
|
||||
}
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user