mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-03 04:29:28 +01:00
cat tree for selection of categories fix if value is not a string
This commit is contained in:
parent
3f789cfdce
commit
bca9931fba
@ -149,6 +149,8 @@ export class Et2TreeDropdown extends SearchMixin<Constructor<any> & Et2InputWidg
|
|||||||
@property()
|
@property()
|
||||||
set value(new_value : string | string[])
|
set value(new_value : string | string[])
|
||||||
{
|
{
|
||||||
|
if(!new_value)new_value="";
|
||||||
|
if(typeof new_value === 'number'){new_value += ""}
|
||||||
if(typeof new_value === "string")
|
if(typeof new_value === "string")
|
||||||
{
|
{
|
||||||
new_value = new_value.split(",")
|
new_value = new_value.split(",")
|
||||||
|
@ -41,6 +41,8 @@ export class Et2TreeDropdownCategory extends Et2TreeDropdown
|
|||||||
*/
|
*/
|
||||||
@property({type: Boolean}) globalCategories = true;
|
@property({type: Boolean}) globalCategories = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
private keep_import : Et2CategoryTag
|
private keep_import : Et2CategoryTag
|
||||||
|
|
||||||
connectedCallback()
|
connectedCallback()
|
||||||
|
Loading…
Reference in New Issue
Block a user