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

This commit is contained in:
Marcos García
2012-07-21 00:08:43 +02:00
parent c0c481a746
commit ccdaf2ffb4
2 changed files with 5 additions and 2 deletions

View File

@@ -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 <b>%s</b>?

View File

@@ -667,7 +667,10 @@ $helpurl='';
if (GETPOST("type") == '0') $helpurl='EN:Module_Products|FR:Module_Produits|ES:M&oacute;dulo_Productos';
if (GETPOST("type") == '1') $helpurl='EN:Module_Services_En|FR:Module_Services|ES:M&oacute;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);