From: Fabian Grünbichler Date: Mon, 15 May 2017 07:31:07 +0000 (+0200) Subject: api: fix rendering of filepath/string parameters X-Git-Url: https://git.proxmox.com/?p=pve-common.git;a=commitdiff_plain;h=fbb0ec640ac1c971da55491c68d32b82c984bc32;hp=2d38b8a1b941a93a3db3c8ce29a46b8de819202b api: fix rendering of filepath/string parameters 25d9bda94127b1a91181cd80bb9948093dea389b broke this check, but it is a better idea to check against the actual type rather then the rendered type text anyway. Signed-off-by: Fabian Grünbichler --- diff --git a/src/PVE/RESTHandler.pm b/src/PVE/RESTHandler.pm index 961b253..119e26e 100644 --- a/src/PVE/RESTHandler.pm +++ b/src/PVE/RESTHandler.pm @@ -415,7 +415,7 @@ my $get_property_description = sub { $type = ''; } - if ($fileparams && $type eq 'string') { + if ($fileparams && $phash->{type} eq 'string') { foreach my $elem (@$fileparams) { if ($name eq $elem) { $type = '';