forked from extern/egroupware
Fix nested placeholders (customfields from other apps) were not being displayed properly
This commit is contained in:
parent
c73a7beac8
commit
d43c27a31b
@ -339,7 +339,7 @@ export class et2_placeholder_select extends et2_inputWidget
|
|||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
options[key].push({
|
options[this.egw().lang(key)].push({
|
||||||
value: key + '-' + sub,
|
value: key + '-' + sub,
|
||||||
label: this.egw().lang(sub)
|
label: this.egw().lang(sub)
|
||||||
});
|
});
|
||||||
|
@ -3085,7 +3085,7 @@ abstract class Merge
|
|||||||
$app = self::get_app_class($field['type']);
|
$app = self::get_app_class($field['type']);
|
||||||
if($app)
|
if($app)
|
||||||
{
|
{
|
||||||
$this->add_linked_placeholders($placeholders, $name, $app->get_placeholder_list('#' . $name));
|
$this->add_linked_placeholders($placeholders, $name, $app->get_placeholder_list(($prefix ? $prefix . '/' : '') . '#' . $name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -316,7 +316,7 @@ class infolog_merge extends Api\Storage\Merge
|
|||||||
[lang($tracking->field2label['info_from']) => []] +
|
[lang($tracking->field2label['info_from']) => []] +
|
||||||
array_slice($placeholders, $insert_index, count($placeholders) - $insert_index, true);
|
array_slice($placeholders, $insert_index, count($placeholders) - $insert_index, true);
|
||||||
$contact_merge = new Api\Contacts\Merge();
|
$contact_merge = new Api\Contacts\Merge();
|
||||||
$contact = $contact_merge->get_placeholder_list('info_contact');
|
$contact = $contact_merge->get_placeholder_list($this->prefix($prefix, 'info_contact'));
|
||||||
$this->add_linked_placeholders($placeholders, lang($tracking->field2label['info_from']), $contact);
|
$this->add_linked_placeholders($placeholders, lang($tracking->field2label['info_from']), $contact);
|
||||||
|
|
||||||
return $placeholders;
|
return $placeholders;
|
||||||
|
Loading…
Reference in New Issue
Block a user