Fix: use hooks for extrafields
This commit is contained in:
parent
71a5b2853c
commit
d2833fe54f
@ -1,7 +1,6 @@
|
|||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
-- Copyright (C) 2007-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
-- Copyright (C) 2007-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
-- Copyright (C) 2007 Regis Houssin <regis@dolibarr.fr>
|
-- Copyright (C) 2007 Regis Houssin <regis@dolibarr.fr>
|
||||||
-- Copyright (C) 2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
|
||||||
--
|
--
|
||||||
-- This program is free software; you can redistribute it and/or modify
|
-- 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
|
-- 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
|
-- You should have received a copy of the GNU General Public License
|
||||||
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
--
|
--
|
||||||
-- $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 $
|
||||||
-- ===================================================================
|
-- ===================================================================
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -25,7 +25,7 @@
|
|||||||
* \file htdocs/societe/soc.php
|
* \file htdocs/societe/soc.php
|
||||||
* \ingroup societe
|
* \ingroup societe
|
||||||
* \brief Third party card page
|
* \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");
|
require("../main.inc.php");
|
||||||
@ -1040,7 +1040,7 @@ else
|
|||||||
{
|
{
|
||||||
foreach($object->hooks as $hook)
|
foreach($object->hooks as $hook)
|
||||||
{
|
{
|
||||||
if (! empty($hook['modules']))
|
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
|
||||||
{
|
{
|
||||||
foreach($hook['modules'] as $module)
|
foreach($hook['modules'] as $module)
|
||||||
{
|
{
|
||||||
@ -1483,7 +1483,7 @@ else
|
|||||||
{
|
{
|
||||||
foreach($object->hooks as $hook)
|
foreach($object->hooks as $hook)
|
||||||
{
|
{
|
||||||
if (! empty($hook['modules']))
|
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
|
||||||
{
|
{
|
||||||
foreach($hook['modules'] as $module)
|
foreach($hook['modules'] as $module)
|
||||||
{
|
{
|
||||||
@ -1839,7 +1839,7 @@ else
|
|||||||
{
|
{
|
||||||
foreach($object->hooks as $hook)
|
foreach($object->hooks as $hook)
|
||||||
{
|
{
|
||||||
if (! empty($hook['modules']))
|
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
|
||||||
{
|
{
|
||||||
foreach($hook['modules'] as $module)
|
foreach($hook['modules'] as $module)
|
||||||
{
|
{
|
||||||
@ -2029,5 +2029,5 @@ else
|
|||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter('$Date: 2011/08/09 09:13:09 $ - $Revision: 1.127 $');
|
llxFooter('$Date: 2011/08/09 14:27:38 $ - $Revision: 1.128 $');
|
||||||
?>
|
?>
|
||||||
Loading…
Reference in New Issue
Block a user