diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php
index 83c6975e3c7..363d8e8d69d 100644
--- a/htdocs/societe/card.php
+++ b/htdocs/societe/card.php
@@ -1301,7 +1301,7 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
$(document).ready(function () {
$('#name').select2({
ajax: {
- url: '/htdocs/core/ajax/ajaxcompanies.php',
+ url: '/core/ajax/ajaxcompanies.php',
dataType: 'json',
delay: 250,
data: function (params) {
@@ -1330,13 +1330,22 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
function formatCustomer (Customer) {
- if (Customer.loading) {
+ if(Customer.label === undefined) {
return Customer.text;
}
+ var logo = '';
+ if(Customer.logo !== undefined) {
+ logo = "";
+ } else {
+ logo = '