Skip to content

Commit

Permalink
Merge pull request #11213 from atm-florian/develop
Browse files Browse the repository at this point in the history
fix missing migration sql for ticket now stable on 10
  • Loading branch information
eldy committed May 18, 2019
2 parents a4cea5b + 7f8c118 commit 91fce6b
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions htdocs/compta/cashcontrol/report.php
Expand Up @@ -41,7 +41,7 @@
$cashcontrol= new CashControl($db);
$cashcontrol->fetch($id);

$limit = GETPOST('limit')?GETPOST('limit', 'int'):$conf->liste_limit;
//$limit = GETPOST('limit')?GETPOST('limit', 'int'):$conf->liste_limit;
$sortorder='ASC';
$sortfield='b.datev,b.dateo,b.rowid';

Expand Down Expand Up @@ -152,7 +152,7 @@
$cash=$bank=$cheque=$other=0;

$totalarray=array();
while ($i < min($num, $limit))
while ($i < $num)
{
$objp = $db->fetch_object($resql);

Expand Down
3 changes: 2 additions & 1 deletion htdocs/install/mysql/migration/9.0.0-10.0.0.sql
Expand Up @@ -374,4 +374,5 @@ insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) v
insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (111, 'supplier_proposal', 'external', 'BILLING', 'Contact fournisseur facturation', 1);
insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (112, 'supplier_proposal', 'external', 'SHIPPING', 'Contact fournisseur livraison', 1);
insert into llx_c_type_contact(rowid, element, source, code, libelle, active ) values (113, 'supplier_proposal', 'external', 'SERVICE', 'Contact fournisseur prestation', 1);


ALTER TABLE llx_ticket_extrafields ADD INDEX idx_ticket_extrafields (fk_object);
23 changes: 23 additions & 0 deletions htdocs/install/mysql/tables/llx_ticket_extrafields.key.sql
@@ -0,0 +1,23 @@
-- ===================================================================
-- Copyright (C) 2002-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
-- Copyright (C) 2002-2003 Jean-Louis Bergamo <jlb@j1b.org>
-- Copyright (C) 2009 Regis Houssin <regis.houssin@inodbox.com>
-- Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
--
-- 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
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- ===================================================================


ALTER TABLE llx_ticket_extrafields ADD INDEX idx_ticket_extrafields (fk_object);

0 comments on commit 91fce6b

Please sign in to comment.