Dolibarr/dolibarr — pull request #1266 by altairis-fr (2013-10-25 13:09:24+00:00)
Title: The delete function might have been called without fetch before (ie by external module) since it receives $id as parameter

And without fetch, the delete of extrafields will fail and other problem may appear with external triggers