mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-27 05:11:41 +02: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
|
// Don't care about what class it is, just that it has the function
|
||||||
// @ts-ignore
|
// @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';
|
throw 'Widget ' + id + ' does not have a get_value() function';
|
||||||
}
|
}
|
||||||
|
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
return widget.get_value();
|
return typeof widget.get_value == "function" ? widget.get_value() : widget.value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user