fix bug for device in associated element of a document

git-svn-id: https://forge.indepnet.net/svn/glpi/trunk@22681 35612d4c-9d10-0410-837c-bf9dd1be60d7
fix bug for entity in associated element of a document

git-svn-id: https://forge.indepnet.net/svn/glpi/trunk@22682 35612d4c-9d10-0410-837c-bf9dd1be60d7