From e86e46c6823c00b7c42a6ed47f102fe0c55604b3 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 28 Apr 2015 13:20:18 +0200 Subject: [PATCH 1/4] Add company icon for direct link Very usefull to create "on the fly" a new contact... --- htdocs/core/tpl/contacts.tpl.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/core/tpl/contacts.tpl.php b/htdocs/core/tpl/contacts.tpl.php index 6aaf0f5f28d..a2522ecde72 100644 --- a/htdocs/core/tpl/contacts.tpl.php +++ b/htdocs/core/tpl/contacts.tpl.php @@ -1,6 +1,7 @@ - * Copyright (C) 2013-2014 Laurent Destailleur +/* Copyright (C) 2012 Regis Houssin + * Copyright (C) 2013-2014 Laurent Destailleur + * Copyright (C) 201 Charlie BENKE * * 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 @@ -94,6 +95,14 @@ $userstatic=new User($db);
trans("ThirdPartyContacts"); ?>
socid; ?> + fetch($selectedCompany); + echo $companystatic->getNomUrl(2); + } + ?> selectCompaniesForNewContact($object, 'id', $selectedCompany, 'newcompany', '', 0); ?>
From 3b02bf14246250cfa9e9f94b36f9076033714de2 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Tue, 28 Apr 2015 13:25:38 +0200 Subject: [PATCH 2/4] fix : withpicto = 2 send only icon --- htdocs/societe/class/societe.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 93144e155c9..b31419974c8 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1811,7 +1811,8 @@ class Societe extends CommonObject if ($withpicto) $result.=($link.img_object(($notooltip?'':$label), 'company', ($notooltip?'':'class="classfortooltip"')).$linkend); if ($withpicto && $withpicto != 2) $result.=' '; - $result.=$link.($maxlen?dol_trunc($name,$maxlen):$name).$linkend; + $result.=$lien.($withpicto !=2?($maxlen?dol_trunc($name,$maxlen):$name):'').$lienfin; + return $result; } From 5b5918f60ce28dc67f72701779cd18ac0284ceb4 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Mon, 18 May 2015 01:00:06 +0200 Subject: [PATCH 3/4] Update societe.class.php --- htdocs/societe/class/societe.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index b31419974c8..7a56868d76e 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -1811,8 +1811,7 @@ class Societe extends CommonObject if ($withpicto) $result.=($link.img_object(($notooltip?'':$label), 'company', ($notooltip?'':'class="classfortooltip"')).$linkend); if ($withpicto && $withpicto != 2) $result.=' '; - $result.=$lien.($withpicto !=2?($maxlen?dol_trunc($name,$maxlen):$name):'').$lienfin; - + $result.=$link.($withpicto !=2?($maxlen?dol_trunc($name,$maxlen):$name):'').$linkend; return $result; } From 750974ec5cb0fb9d390d47ffe824ae7d33e7ad86 Mon Sep 17 00:00:00 2001 From: BENKE Charlie Date: Wed, 15 Jul 2015 19:48:54 +0200 Subject: [PATCH 4/4] Update contacts.tpl.php your right i'm not so old ;-) --- htdocs/core/tpl/contacts.tpl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/tpl/contacts.tpl.php b/htdocs/core/tpl/contacts.tpl.php index a2522ecde72..a868cf5eb4f 100644 --- a/htdocs/core/tpl/contacts.tpl.php +++ b/htdocs/core/tpl/contacts.tpl.php @@ -1,7 +1,7 @@ * Copyright (C) 2013-2014 Laurent Destailleur - * Copyright (C) 201 Charlie BENKE + * Copyright (C) 2015 Charlie BENKE * * 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