Skip to content

Commit

Permalink
Add zero entity into extrafeild deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
FHenry committed Apr 26, 2013
1 parent 271dcf5 commit d0f44bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/extrafields.class.php
Expand Up @@ -323,7 +323,7 @@ private function delete_label($attrname, $elementtype='member')
{
$sql = "DELETE FROM ".MAIN_DB_PREFIX."extrafields";
$sql.= " WHERE name = '".$attrname."'";
$sql.= " AND entity = ".$conf->entity;
$sql.= " AND entity IN (0,".$conf->entity.')';
$sql.= " AND elementtype = '".$elementtype."'";

dol_syslog(get_class($this)."::delete_label sql=".$sql);
Expand Down

0 comments on commit d0f44bf

Please sign in to comment.