From 88a6b6535349314e7f5bbee259cab2a694f0b2e5 Mon Sep 17 00:00:00 2001
From: wdammak <26695620+wdammak@users.noreply.github.com>
Date: Wed, 13 Apr 2022 17:11:51 +0100
Subject: [PATCH] Update card.php
Add logo
---
htdocs/societe/card.php | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
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 = '