diff --git a/htdocs/adherents/class/adherent.class.php b/htdocs/adherents/class/adherent.class.php index a92673768bc..6de0fcb9118 100644 --- a/htdocs/adherents/class/adherent.class.php +++ b/htdocs/adherents/class/adherent.class.php @@ -2293,7 +2293,7 @@ class Adherent extends CommonObject /** * Return clicable name (with picto eventually) * - * @param int $withpictoimg 0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo, -3=Only photo very small) + * @param int $withpictoimg 0=No picto, 1=Include picto into link, 2=Only picto, -1=Include photo into link, -2=Only picto photo, -3=Only photo very small, -4=???) * @param int $maxlen length max label * @param string $option Page for link ('card', 'category', 'subscription', ...) * @param string $mode ''=Show firstname+lastname as label (using default order), 'firstname'=Show only firstname, 'lastname'=Show only lastname, 'login'=Show login, 'ref'=Show ref @@ -2363,7 +2363,7 @@ class Adherent extends CommonObject $result .= $linkstart; if ($withpictoimg) { - $result .= '
'; + //$result .= '
'; } if ($withpictoimg) { $paddafterimage = ''; @@ -2398,7 +2398,7 @@ class Adherent extends CommonObject } } if ($withpictoimg) { - $result .= '
'; + //$result .= '
'; } $result .= $linkend; diff --git a/htdocs/adherents/class/subscription.class.php b/htdocs/adherents/class/subscription.class.php index 2e9eeba7553..2012f7c839d 100644 --- a/htdocs/adherents/class/subscription.class.php +++ b/htdocs/adherents/class/subscription.class.php @@ -554,7 +554,7 @@ class Subscription extends CommonObject $return .= '
'; $return .= ''; - $return .= $this->getNomUrl(-1); + $return .= $this->getNomUrl(0); $return .= ''; if ($selected >= 0) { $return .= ''; @@ -564,11 +564,11 @@ class Subscription extends CommonObject } if (!empty($arraydata['member']) && is_object($arraydata['member'])) { - $return .= '
'.$arraydata['member']->getNomUrl(-4).''; + $return .= '
'.$arraydata['member']->getNomUrl(-4).'
'; } if (property_exists($this, 'amount')) { - $return .= '
'.price($this->amount).''; + $return .= '
'.price($this->amount).''; if (!empty($arraydata['bank'])) { $return .= '   '.$arraydata['bank']->getNomUrl(-1).''; } diff --git a/htdocs/comm/propal/class/propal.class.php b/htdocs/comm/propal/class/propal.class.php index a2b7074214e..06525a71ab6 100644 --- a/htdocs/comm/propal/class/propal.class.php +++ b/htdocs/comm/propal/class/propal.class.php @@ -3307,7 +3307,7 @@ class Propal extends CommonObject public function LibStatut($status, $mode = 1) { // phpcs:enable - global $conf, $hookmanager; + global $hookmanager; // Init/load array of translation of status if (empty($this->labelStatus) || empty($this->labelStatusShort)) { @@ -3342,7 +3342,6 @@ class Propal extends CommonObject $statusType = 'status6'; } - $parameters = array('status' => $status, 'mode' => $mode); $reshook = $hookmanager->executeHooks('LibStatut', $parameters, $this); // Note that $action and $object may have been modified by hook @@ -3930,9 +3929,9 @@ class Propal extends CommonObject $return = '
'; $return .= '
'; - $return .= ''; + $return .= '
'; $return .= img_picto('', $this->picto); - $return .= ''; + $return .= '
'; $return .= '
'; $return .= ''.(method_exists($this, 'getNomUrl') ? $this->getNomUrl() : $this->ref).''; if ($selected >= 0) { @@ -3941,11 +3940,15 @@ class Propal extends CommonObject if (!empty($arraydata['projectlink'])) { $return .= ' | '.$arraydata['projectlink'].''; } - if (!empty($arraydata['authorlink'])) { - $return .= '
'.$arraydata['authorlink'].''; + $return .= '
'; + if (property_exists($this, 'thirdparty') && is_object($this->thirdparty)) { + $return .= '
'.$this->thirdparty->getNomUrl(1).'
'; } if (property_exists($this, 'total_ht')) { - $return .= '
'.price($this->total_ht).''; + $return .= ''.price($this->total_ht).''; + } + if (!empty($arraydata['authorlink'])) { + $return .= '   '.$arraydata['authorlink'].''; } if (method_exists($this, 'getLibStatut')) { $return .= '
'.$this->getLibStatut(3).'
'; diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index d45aa2881db..b740abf238e 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -1716,7 +1716,7 @@ while ($i < $imaxinloop) { $objectstatic->id = $obj->rowid; $objectstatic->ref = $obj->ref; - $objectstatic->ref_client = $obj->ref_client; + $objectstatic->ref_customer = $obj->ref_client; $objectstatic->note_public = $obj->note_public; $objectstatic->note_private = $obj->note_private; $objectstatic->statut = $obj->status; @@ -1776,6 +1776,7 @@ while ($i < $imaxinloop) { print '
'; } // Output Kanban + $objectstatic->thirdparty = $companystatic; $userstatic->fetch($obj->fk_user_author); $arrayofparams = array('selected' => in_array($object->id, $arrayofselected), 'authorlink' => $userstatic->getNomUrl(-2), 'projectlink' => $projectstatic->getNomUrl(2)); print $objectstatic->getKanbanView('', $arrayofparams); diff --git a/htdocs/contact/class/contact.class.php b/htdocs/contact/class/contact.class.php index b744df70156..f72b8187ec9 100644 --- a/htdocs/contact/class/contact.class.php +++ b/htdocs/contact/class/contact.class.php @@ -1453,7 +1453,7 @@ class Contact extends CommonObject * Return name of contact with link (and eventually picto) * Use $this->id, $this->lastname, $this->firstname, this->civility_id * - * @param int $withpicto Include picto with link (1=picto + name, 2=picto only, -1=photo+name, -2=photo only) + * @param int $withpicto Include picto with link (0=no picto, 1=picto + name, 2=picto only, -1=photo+name, -2=photo only) * @param string $option Where the link point to * @param int $maxlen Max length of * @param string $moreparam Add more param into URL @@ -2190,7 +2190,7 @@ class Contact extends CommonObject } $return .= ''; $return .= '
'; - $return .= '
'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(1) : $this->ref).'
'; + $return .= '
'.(method_exists($this, 'getNomUrl') ? $this->getNomUrl(0) : $this->ref).'
'; if ($selected >= 0) { $return .= ''; } diff --git a/htdocs/theme/eldy/info-box.inc.php b/htdocs/theme/eldy/info-box.inc.php index 1e849181944..8afe283f481 100644 --- a/htdocs/theme/eldy/info-box.inc.php +++ b/htdocs/theme/eldy/info-box.inc.php @@ -547,7 +547,9 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) { margin-bottom: 0px; margin-: 10px; } - +.kanban .box-flex-item { + line-height: 1.4em; +} .info-box-title { width: calc(100% - 20px); diff --git a/htdocs/theme/md/info-box.inc.php b/htdocs/theme/md/info-box.inc.php index ebbb4ac7599..138fbed8834 100644 --- a/htdocs/theme/md/info-box.inc.php +++ b/htdocs/theme/md/info-box.inc.php @@ -562,7 +562,7 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) { flex-wrap: wrap; width: 100%; margin: 0 0 0 -10px; - justify-content: space-between; + /* justify-content: space-between; Do not use this: If there is 3 elements on last line and previous has 4, then the 3 are centered */ } .box-flex-container-columns { display: flex; /* or inline-flex */ @@ -597,6 +597,10 @@ if (GETPOSTISSET('THEME_SATURATE_RATIO')) { margin-bottom: 0px; margin-: 10px; } +.kanban .box-flex-item { + line-height: 1.4em; +} + @media only screen and (max-width: 767px) { .box-flex-container {