From 2005ce8d6ee02d0287e5724929174b2130ed4fc9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 26 May 2013 05:01:28 +0200 Subject: [PATCH 1/4] Fix: Error with jmobile --- htdocs/core/class/html.formother.class.php | 113 +++++++++++---------- 1 file changed, 59 insertions(+), 54 deletions(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index c3157c07124..c2d3a7c32c2 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -544,68 +544,73 @@ class FormOther */ function selectColor($set_color='', $prefix='f_color', $form_name='objForm', $showcolorbox=1, $arrayofcolors='', $morecss='') { - global $langs; + global $langs,$conf; $out=''; if (! is_array($arrayofcolors) || count($arrayofcolors) < 1) { $langs->load("other"); - $out.= ''; - $out.= ''; - $out.= ''; + if (empty($conf->dol_use_jmobile)) + { + $out.= ''; + $out.= ''; + $out.= ''; + } $out.= ''; } else // In most cases, this is not used. We used instead function with no specific list of colors { - $out.= ''; - $out.= ''; - $out.= ''; - + if (empty($conf->dol_use_jmobile)) + { + $out.= ''; + $out.= ''; + $out.= ''; + } $out.= ''; + $cleartext='
'.$langs->trans("ToClearAllRecipientsClickHere").': '.''; print_barre_liste($langs->trans("MailSelectedRecipients").$cleartext,$page,$_SERVER["PHP_SELF"],$param,$sortfield,$sortorder,"",$num,$object->nbemail,''); From 0c62942f03ae8ffdcf6c3177e48bdcc0193ca9c8 Mon Sep 17 00:00:00 2001 From: simnandez Date: Tue, 28 May 2013 09:28:31 +0200 Subject: [PATCH 3/4] [ bug #914 ] It is not possible to validate a supplier invoice --- htdocs/fourn/facture/fiche.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 8774c2b871c..dcf47f43303 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1344,7 +1344,8 @@ else if (! empty($conf->global->FAC_FORCE_DATE_VALIDATION)) { $object->date=dol_now(); - $object->date_lim_reglement=$object->calculate_date_lim_reglement(); + //TODO: Possibly will have to control payment information into suppliers + //$object->date_lim_reglement=$object->calculate_date_lim_reglement(); } $numref = $object->getNextNumRef($soc); } From 485c7bc4776661838f602b402a45547d52ec7035 Mon Sep 17 00:00:00 2001 From: simnandez Date: Tue, 28 May 2013 15:19:24 +0200 Subject: [PATCH 4/4] Fix: Trad categories more accurate --- htdocs/langs/ca_ES/categories.lang | 2 +- htdocs/langs/es_ES/categories.lang | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/ca_ES/categories.lang b/htdocs/langs/ca_ES/categories.lang index f1724dc7d6f..b78604f19b1 100644 --- a/htdocs/langs/ca_ES/categories.lang +++ b/htdocs/langs/ca_ES/categories.lang @@ -76,7 +76,7 @@ ProductsCategoryShort=Categoria productes MembersCategoryShort=Categoria membre SuppliersCategoriesShort=Categories proveïdors CustomersCategoriesShort=Categories clients -CustomersProspectsCategoriesShort=Categories clients/potencials +CustomersProspectsCategoriesShort=Categories clients ProductsCategoriesShort=Categories productes MembersCategoriesShort=Categories membres ThisCategoryHasNoProduct=Aquesta categoria no conté cap producte. diff --git a/htdocs/langs/es_ES/categories.lang b/htdocs/langs/es_ES/categories.lang index 339eef375f6..217eb80ae64 100644 --- a/htdocs/langs/es_ES/categories.lang +++ b/htdocs/langs/es_ES/categories.lang @@ -76,7 +76,7 @@ ProductsCategoryShort=Categoría productos MembersCategoryShort=Categoría miembro SuppliersCategoriesShort=Categorías proveedores CustomersCategoriesShort=Categorías clientes -CustomersProspectsCategoriesShort=Categorías clientes/potenciales +CustomersProspectsCategoriesShort=Categorías clientes ProductsCategoriesShort=Categorías productos MembersCategoriesShort=Categorías miembros ThisCategoryHasNoProduct=Esta categoría no contiene ningún producto.