mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-15 19:20:47 +01:00
Fix et2container.getValueById() failed with error on (some) webcomponents
This commit is contained in:
parent
c01b39fe64
commit
aded689831
@ -436,13 +436,13 @@ export class et2_container extends et2_baseWidget
|
||||
|
||||
// Don't care about what class it is, just that it has the function
|
||||
// @ts-ignore
|
||||
if(typeof widget.get_value !== 'function')
|
||||
if(typeof widget.get_value !== 'function' && typeof widget.value == "undefined")
|
||||
{
|
||||
throw 'Widget ' + id + ' does not have a get_value() function';
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
return widget.get_value();
|
||||
return typeof widget.get_value == "function" ? widget.get_value() : widget.value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user