Fix selectboxes didn't show server-side validation messages

This commit is contained in:
nathan 2022-06-30 08:38:48 -06:00
parent 9962ac3197
commit 76a19e86fb
2 changed files with 6 additions and 1 deletions

View File

@ -29,6 +29,8 @@ export declare class Et2InputWidgetInterface
public set_readonly(boolean) : void; public set_readonly(boolean) : void;
public set_validation_error(message : string | false) : void;
public isDirty() : boolean; public isDirty() : boolean;
public resetDirty() : void; public resetDirty() : void;

View File

@ -1565,7 +1565,10 @@ export class etemplate2
{ {
(<et2_tabbox><unknown>tmpWidget).activateTab(widget); (<et2_tabbox><unknown>tmpWidget).activateTab(widget);
} }
}
else if(typeof widget.set_validation_error == "function")
{
widget.set_validation_error(_response.data[id]);
} }
} }
egw().debug("warn", "Validation errors", _response.data); egw().debug("warn", "Validation errors", _response.data);