From d2833fe54fe3f628e83339bd4c68d9d05cbb4bc5 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 9 Aug 2011 14:27:38 +0000 Subject: [PATCH] Fix: use hooks for extrafields --- htdocs/install/mysql/tables/llx_export_model.key.sql | 5 ++--- htdocs/societe/soc.php | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/htdocs/install/mysql/tables/llx_export_model.key.sql b/htdocs/install/mysql/tables/llx_export_model.key.sql index 337374ee554..8916ace44ed 100644 --- a/htdocs/install/mysql/tables/llx_export_model.key.sql +++ b/htdocs/install/mysql/tables/llx_export_model.key.sql @@ -1,7 +1,6 @@ -- =================================================================== --- Copyright (C) 2007-2008 Laurent Destailleur +-- Copyright (C) 2007-2011 Laurent Destailleur -- Copyright (C) 2007 Regis Houssin --- Copyright (C) 2011 Laurent Destailleur -- -- 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 @@ -16,7 +15,7 @@ -- You should have received a copy of the GNU General Public License -- along with this program. If not, see . -- --- $Id: llx_export_model.key.sql,v 1.3 2011/08/08 23:24:30 eldy Exp $ +-- $Id: llx_export_model.key.sql,v 1.4 2011/08/09 14:27:38 hregis Exp $ -- =================================================================== diff --git a/htdocs/societe/soc.php b/htdocs/societe/soc.php index 78805223680..098bb7385bd 100644 --- a/htdocs/societe/soc.php +++ b/htdocs/societe/soc.php @@ -25,7 +25,7 @@ * \file htdocs/societe/soc.php * \ingroup societe * \brief Third party card page - * \version $Id: soc.php,v 1.127 2011/08/09 09:13:09 hregis Exp $ + * \version $Id: soc.php,v 1.128 2011/08/09 14:27:38 hregis Exp $ */ require("../main.inc.php"); @@ -1040,7 +1040,7 @@ else { foreach($object->hooks as $hook) { - if (! empty($hook['modules'])) + if ($hook['type'] == 'extrafields' && ! empty($hook['modules'])) { foreach($hook['modules'] as $module) { @@ -1483,7 +1483,7 @@ else { foreach($object->hooks as $hook) { - if (! empty($hook['modules'])) + if ($hook['type'] == 'extrafields' && ! empty($hook['modules'])) { foreach($hook['modules'] as $module) { @@ -1839,7 +1839,7 @@ else { foreach($object->hooks as $hook) { - if (! empty($hook['modules'])) + if ($hook['type'] == 'extrafields' && ! empty($hook['modules'])) { foreach($hook['modules'] as $module) { @@ -2029,5 +2029,5 @@ else $db->close(); -llxFooter('$Date: 2011/08/09 09:13:09 $ - $Revision: 1.127 $'); +llxFooter('$Date: 2011/08/09 14:27:38 $ - $Revision: 1.128 $'); ?> \ No newline at end of file