From ccdaf2ffb46be2634437c411e7c18e2570c5adc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a?= Date: Sat, 21 Jul 2012 00:08:43 +0200 Subject: [PATCH] When viewing a product/service, if we don't know the type of the item, then we use a generic page title. Also fixed typo in es_ES --- htdocs/langs/es_ES/products.lang | 2 +- htdocs/product/fiche.php | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/langs/es_ES/products.lang b/htdocs/langs/es_ES/products.lang index c26b573094b..03208b3eae7 100644 --- a/htdocs/langs/es_ES/products.lang +++ b/htdocs/langs/es_ES/products.lang @@ -156,7 +156,7 @@ ServiceNb=Servicio no %s ListProductServiceByPopularity=Listado de productos/servicios por popularidad ListProductByPopularity=Listado de productos/servicios por popularidad ListServiceByPopularity=Listado de servicios por popularidad -Finished=Producto manofacturado +Finished=Producto manufacturado RowMaterial=Materia prima CloneProduct=Clonar producto/servicio ConfirmCloneProduct=¿Está seguro de querer clonar el producto o servicio %s? diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 1b8a4aa8bca..49fffe6c8b9 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -667,7 +667,10 @@ $helpurl=''; if (GETPOST("type") == '0') $helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos'; if (GETPOST("type") == '1') $helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios'; -llxHeader('',$langs->trans("CardProduct".$_GET["type"]),$helpurl); +if (isset($_GET['type'])) $title = $langs->trans('CardProduct'.$_GET['type']); +else $title = $langs->trans('ProductServiceCard'); + +llxHeader('', $title, $helpurl); $form = new Form($db); $formproduct = new FormProduct($db);