Skip to content

Commit

Permalink
Merge pull request #85 from alexplusde/hotfix-issue-84
Browse files Browse the repository at this point in the history
fix rex_var_custom_link
  • Loading branch information
alxndr-w authored Sep 18, 2024
2 parents ed729a0 + ab8ee3c commit 0811412
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/yform/value/choice_html.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function enterObject()
$template = str_replace('choice', 'choice-view', $template);
$getChoices = static function ($choices, $options) use (&$getChoices) {
foreach ($choices as $choice) {
if ('rex_yform_choice_group_view' == get_class($choice)) {
if ('rex_yform_choice_group_view' == $choice::class) {
/** @var rex_yform_choice_group_view $choice */
$options = $getChoices($choice->choices, $options);
} else {
Expand Down
2 changes: 1 addition & 1 deletion lib/yform/value/custom_link.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ public static function getListValue($params)
if ('' == $params['value']) {
return '-';
}
return rex_var_custom_url::getCustomUrlText($params['value']);
return rex_var_custom_link::getCustomUrlText($params['value']);
}
}
2 changes: 1 addition & 1 deletion ytemplates/bootstrap/value.custom_link.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'yurl' => $this->getElement('yurl'),
];

$widget = rex_var_custom_url::getWidget($buttonId, $name, $value, $parameters);
$widget = rex_var_custom_link::getWidget($buttonId, $name, $value, $parameters);

$class_group = trim('form-group ' . $this->getHTMLClass() . ' ' . $this->getWarningClass());

Expand Down

0 comments on commit 0811412

Please sign in to comment.