From: Vincent Vanwaelscappel Date: Wed, 24 May 2023 10:50:54 +0000 (+0200) Subject: wait #5940 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=55e5469ab7a29979aa2b86a296399db09c58bdaf;p=fluidbook-toolbox.git wait #5940 @1 --- diff --git a/app/Fluidbook/Compiler/Links.php b/app/Fluidbook/Compiler/Links.php index 49f74d7b7..3e7e9910e 100644 --- a/app/Fluidbook/Compiler/Links.php +++ b/app/Fluidbook/Compiler/Links.php @@ -402,7 +402,7 @@ trait Links protected function addLinkLinks($link, $links, $assetsDimensions, &$linksToAdd) { - + $i = 0; foreach ($links as $llink) { if ($llink['page'] !== 'link_uid_' . $link['uid']) { continue; @@ -418,11 +418,12 @@ trait Links $llink['top'] = $link['top'] + ($llink['top'] * $scaleY); $llink['width'] *= $scaleX; $llink['height'] *= $scaleY; - $instance = Link::getInstance($this->base62(count($linksToAdd)), $llink, $this); + $instance = Link::getInstance($link['id'] . '_l_' . $i, $llink, $this); if (is_null($instance) || $instance->ignore()) { continue; } $linksToAdd[] = $instance; + $i++; } } diff --git a/app/SubForms/Link/Base.php b/app/SubForms/Link/Base.php index d11403940..f617139de 100644 --- a/app/SubForms/Link/Base.php +++ b/app/SubForms/Link/Base.php @@ -124,7 +124,7 @@ class Base extends Form { $res = []; foreach (self::types() as $l) { - if(!isset($l['class'])){ + if (!isset($l['class'])) { continue; } $class = $l['class']; @@ -172,7 +172,7 @@ class Base extends Form return; } $this->addField('header_tooltip', FormSection::class, __('Infobulle')); - $this->addField('tooltip', Text::class, __('Texte de l\'infobulle'), ['hint' => __('Laisser vide pour conserver le texte par défaut')]); + $this->addField('tooltip', Text::class, __('Texte de l\'infobulle'), ['hint' => __('Laisser vide pour conserver le texte par défaut') . '.
' . __('Taper un tiret (-) pour ne pas afficher d\'infobulle')]); $this->addField('display_area', CheckboxBasic::class, __('Afficher la zone de couleur au survol'), ['default' => true]); }