mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
* Addressbook: fix 'undefined' title shown for some contact links opened in CRM view tabs
This commit is contained in:
parent
6f6df9b489
commit
b251fde23b
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user