From e14d2f08b82d8e2f0048b967b617a2a7ac06c5b0 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 11 Mar 2018 11:12:38 +0100 Subject: [PATCH] Dolibarize --- .../core/class/html.formticketsup.class.php | 15 ++-- htdocs/core/lib/ticketsup.lib.php | 17 ++-- .../ticketsup/mod_ticketsup_simple.php | 11 --- .../ticketsup/mod_ticketsup_universal.php | 11 --- .../class/actions_ticketsup.class.php | 88 ++++++++++++------- .../ticketsup/class/api_ticketsups.class.php | 2 +- htdocs/ticketsup/class/ticketsup.class.php | 9 +- .../ticketsup/class/ticketsuplogs.class.php | 18 ++-- htdocs/ticketsup/class/utils_diff.class.php | 30 ++----- .../ticketsup/tpl/linkedobjectblock.tpl.php | 1 - 10 files changed, 93 insertions(+), 109 deletions(-) diff --git a/htdocs/core/class/html.formticketsup.class.php b/htdocs/core/class/html.formticketsup.class.php index 6beae7438e2..b7834923b26 100644 --- a/htdocs/core/class/html.formticketsup.class.php +++ b/htdocs/core/class/html.formticketsup.class.php @@ -1,6 +1,6 @@ - * 2016 Christophe Battarel +/* Copyright (C) - 2013-2015 Jean-François FERRY + * Copyright (C) 2016 Christophe Battarel * * 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 @@ -31,8 +31,8 @@ if (!class_exists('FormCompany')) { /** * Classe permettant la generation du formulaire d'un nouveau ticket * - * @package ticketsup - + * \ingroup ticketsup + * * \remarks Utilisation: $formticketsup = new FormTicketsup($db) * \remarks $formticketsup->proprietes=1 ou chaine ou tableau de valeurs * \remarks $formticketsup->show_form() affiche le formulaire @@ -74,7 +74,6 @@ class FormTicketsup public $withcancel; /** - * * @var array $substit Substitutions */ public $substit = array(); @@ -414,9 +413,9 @@ class FormTicketsup * @param string $filtertype To filter on field type in llx_c_ticketsup_type (array('code'=>xx,'label'=>zz)) * @param int $format 0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code * @param int $empty 1=peut etre vide, 0 sinon - * @param int $noadmininfo 0=Add admin info, 1=Disable admin info + * @param int $noadmininfo 0=Add admin info, 1=Disable admin info * @param int $maxlength Max length of label - * @return void + * @return void */ public function selectTypesTickets($selected = '', $htmlname = 'tickettype', $filtertype = '', $format = 0, $empty = 0, $noadmininfo = 0, $maxlength = 0) { @@ -432,7 +431,7 @@ class FormTicketsup $filterarray = explode(',', $filtertype); } - $ticketstat->load_cache_types_tickets(); + $ticketstat->loadCacheTypesTickets(); print '