Skip to content
Snippets Groups Projects
Commit ab5e4c4b authored by Henri Queneau's avatar Henri Queneau
Browse files

FIX #2321 add the request delete from user_basket_secondary table for delete...

FIX #2321 add the request delete from user_basket_secondary table for delete the group_id when you change the group_id of a user
parent 16fa5728
No related branches found
No related tags found
No related merge requests found
......@@ -809,6 +809,11 @@ class users_controler extends ObjectControler implements ObjectControlerIF
break;
}
}
if($ok == true){
$query = "delete from ".USER_BASKETS_SECONDARY_TABLE." where system_id in (select system_id from ".USER_BASKETS_SECONDARY_TABLE." where group_id not in
(select group_id from ".USERGROUP_CONTENT_TABLE." where user_id = '".$userId."'))";
self::$db->query($query);
}
self::$db->disconnect();
return $ok;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment