From 5cb91e017c2f5d508b827f1f670fc21a6bebe075 Mon Sep 17 00:00:00 2001 From: tiaris Date: Fri, 5 Aug 2011 06:29:50 +0000 Subject: [PATCH 01/11] JH : adding $sqlquery = '' parameter to build_file function to transmit a sql query instead of building it from arrays --- htdocs/exports/class/export.class.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/exports/class/export.class.php b/htdocs/exports/class/export.class.php index 60332674b40..72ee696c947 100644 --- a/htdocs/exports/class/export.class.php +++ b/htdocs/exports/class/export.class.php @@ -20,7 +20,7 @@ * \file htdocs/exports/class/export.class.php * \ingroup export * \brief File of class to manage exports - * \version $Id: export.class.php,v 1.12 2011/07/31 23:50:57 eldy Exp $ + * \version $Id: export.class.php,v 1.13 2011/08/05 06:29:50 tiaris Exp $ */ @@ -213,11 +213,12 @@ class Export * \param model Export format * \param datatoexport Name of dataset to export * \param array_selected Filter on array of fields to export + * \param sqlquery = '' if set, transmit a sql query instead of building it from arrays * \remarks Les tableaux array_export_xxx sont deja chargees pour le bon datatoexport * aussi le parametre datatoexport est inutilise */ - function build_file($user, $model, $datatoexport, $array_selected) - { + function build_file($user, $model, $datatoexport, $array_selected, $sqlquery = '') + { global $conf,$langs; $indice=0; @@ -232,7 +233,8 @@ class Export require_once($dir.$file); $objmodel = new $classname($db); - $sql=$this->build_sql($indice,$array_selected); + if ($sqlquery) $sql = $sqlquery; + else $sql=$this->build_sql($indice,$array_selected); // Run the sql $this->sqlusedforexport=$sql; From fb4d86e3e248192254a726f59110613052a2c1e9 Mon Sep 17 00:00:00 2001 From: tiaris Date: Fri, 5 Aug 2011 06:29:50 +0000 Subject: [PATCH 02/11] JH : adding $sqlquery = '' parameter to build_file function to transmit a sql query instead of building it from arrays From d1da6cf5ef88c5caab80df1fd439e2fb495e8a54 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Fri, 5 Aug 2011 12:59:17 +0000 Subject: [PATCH 03/11] Fix: bug #33949: Product or Service Card not show my propals --- htdocs/product/fiche.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index c0b9dfabb70..badd9c3c815 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -5,7 +5,7 @@ * Copyright (C) 2005-2011 Regis Houssin * Copyright (C) 2006 Andre Cianfarani * Copyright (C) 2006 Auguria SARL - * Copyright (C) 2010 Juanjo Menent + * Copyright (C) 2010-2011 Juanjo Menent * * 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 @@ -25,7 +25,7 @@ * \file htdocs/product/fiche.php * \ingroup product * \brief Page to show product - * \version $Id: fiche.php,v 1.375 2011/08/04 21:46:50 eldy Exp $ + * \version $Id: fiche.php,v 1.376 2011/08/05 12:59:17 simnandez Exp $ */ require("../main.inc.php"); @@ -1286,7 +1286,7 @@ if ($product->id && $action == '' && $product->status) $sql.= " AND p.entity = ".$conf->entity; $sql.= " AND p.fk_statut = 0"; $sql.= " AND p.fk_user_author = ".$user->id; - $sql.= " ORDER BY p.datec DESC, tms DESC"; + $sql.= " ORDER BY p.datec DESC, p.tms DESC"; $result=$db->query($sql); if ($result) @@ -1645,6 +1645,6 @@ if ($product->id && $action == '' && $product->status) $db->close(); -llxFooter('$Date: 2011/08/04 21:46:50 $ - $Revision: 1.375 $'); +llxFooter('$Date: 2011/08/05 12:59:17 $ - $Revision: 1.376 $'); ?> From 597386e1937b830db59f7c0ea3917feac29ad99d Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Fri, 5 Aug 2011 13:23:21 +0000 Subject: [PATCH 04/11] CashDesk: Add tooltip for disconect link, fix spanish label for back office link. --- htdocs/cashdesk/tpl/menu.tpl.php | 2 +- htdocs/langs/ca_ES/cashdesk.lang | 2 +- htdocs/langs/es_ES/cashdesk.lang | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/cashdesk/tpl/menu.tpl.php b/htdocs/cashdesk/tpl/menu.tpl.php index 8b82c9f8249..44d62f54af4 100644 --- a/htdocs/cashdesk/tpl/menu.tpl.php +++ b/htdocs/cashdesk/tpl/menu.tpl.php @@ -58,7 +58,7 @@ if (!empty($_SESSION["CASHDESK_ID_WAREHOUSE"]) && $conf->stock->enabled) $langs->load("cashdesk"); $langs->load("main"); -$logout=''; +$logout=''; print '