Skip to content

Commit

Permalink
Fix: use hooks for extrafields
Browse files Browse the repository at this point in the history
  • Loading branch information
hregis committed Aug 9, 2011
1 parent 7f876fe commit 5f14ddd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions htdocs/societe/soc.php
Expand Up @@ -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");
Expand Down Expand Up @@ -1040,7 +1040,7 @@
{
foreach($object->hooks as $hook)
{
if (! empty($hook['modules']))
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
{
foreach($hook['modules'] as $module)
{
Expand Down Expand Up @@ -1483,7 +1483,7 @@
{
foreach($object->hooks as $hook)
{
if (! empty($hook['modules']))
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
{
foreach($hook['modules'] as $module)
{
Expand Down Expand Up @@ -1839,7 +1839,7 @@
{
foreach($object->hooks as $hook)
{
if (! empty($hook['modules']))
if ($hook['type'] == 'extrafields' && ! empty($hook['modules']))
{
foreach($hook['modules'] as $module)
{
Expand Down Expand Up @@ -2029,5 +2029,5 @@

$db->close();

llxFooter('$Date: 2011/08/09 09:13:09 $ - $Revision: 1.127 $');
llxFooter('$Date: 2011/08/09 14:27:38 $ - $Revision: 1.128 $');
?>

0 comments on commit 5f14ddd

Please sign in to comment.