* Addressbook: fix 'undefined' title shown for some contact links opened in CRM view tabs

This commit is contained in:
Hadi Nategh 2020-12-03 18:19:25 +01:00
parent 6f6df9b489
commit b251fde23b
2 changed files with 5 additions and 0 deletions

View File

@ -1109,6 +1109,9 @@ var et2_link = /** @class */ (function (_super) {
if (_value.id && _value.app) {
this.link.addClass("et2_link");
this.link.click(function (e) {
// try to fetch value.title if it wasn't fetched during initiation.
if (!_value.title)
_value.title = self.egw().link_title(_value.app, _value.id);
if (!self.options.target_app) {
self.options.target_app = _value.app;
}

View File

@ -1400,6 +1400,8 @@ export class et2_link extends et2_valueWidget implements et2_IDetachedDOM
this.link.addClass("et2_link");
this.link.click( function(e)
{
// try to fetch value.title if it wasn't fetched during initiation.
if (!_value.title) _value.title = self.egw().link_title(_value.app, _value.id);
if( !self.options.target_app ){
self.options.target_app = _value.app;
}