mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 13:58:40 +01:00
* Addressbook: fix 'undefined' title shown for some contact links opened in CRM view tabs
This commit is contained in:
parent
ee7af811c4
commit
e317645291
@ -1111,6 +1111,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;
|
||||
}
|
||||
|
@ -1401,6 +1401,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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user