mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-18 22:43:47 +01:00
LSformElement::labeledValue: fix label translation on freeze view
This commit is contained in:
parent
e2ff1503ab
commit
2abc369c73
2 changed files with 2 additions and 5 deletions
|
@ -96,9 +96,6 @@ class LSformElement_labeledValue extends LSformElement {
|
|||
$ret=array('raw_value' => $value);
|
||||
if (preg_match('/^\[([^\]]*)\](.*)$/',$value,$m)) {
|
||||
$ret['label'] = $m[1];
|
||||
$label = $this -> getParam('html_options.labels.'.$ret['label']);
|
||||
if ($label)
|
||||
$ret['translated_label'] = $label;
|
||||
$ret['value'] = $m[2];
|
||||
}
|
||||
return $ret;
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{if $freeze}
|
||||
{if isset($parseValue)}
|
||||
{if $parseValue.label}
|
||||
{if $parseValue.translated_label}
|
||||
<span title='[{$parseValue.label|escape:'htmlall'}]'>{$parseValue.translated_label|escape:"htmlall"}</span>
|
||||
{if isset($labels[$parseValue.label])}
|
||||
<span title='[{$parseValue.label|escape:'htmlall'}]'>{$labels[$parseValue.label]|escape:"htmlall"}</span>
|
||||
{else}
|
||||
<span>{$parseValue.label|escape:"htmlall"} {$unrecognizedLabelTxt|escape:"htmlall"}</span>
|
||||
{/if}
|
||||
|
|
Loading…
Reference in a new issue