]> git.proxmox.com Git - pve-common.git/blobdiff - src/PVE/RESTHandler.pm
api: fix rendering of filepath/string parameters
[pve-common.git] / src / PVE / RESTHandler.pm
index 961b2532c085fee7972d149d34aa21e34658d270..119e26ee3556eecb910a67afff79821560b0099b 100644 (file)
@@ -415,7 +415,7 @@ my $get_property_description = sub {
        $type = '';
     }
 
        $type = '';
     }
 
-    if ($fileparams && $type eq 'string') {
+    if ($fileparams && $phash->{type} eq 'string') {
        foreach my $elem (@$fileparams) {
            if ($name eq $elem) {
                $type = '<filepath>';
        foreach my $elem (@$fileparams) {
            if ($name eq $elem) {
                $type = '<filepath>';