Skip to content

Commit

Permalink
Added the fix for ticket LDEV-5050
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Oct 4, 2024
1 parent 5cfb0bd commit fc8fdd5
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,20 @@
*/
public HelperBase function addParam() {
ArrayAppend(variables.params,arguments);
variables.params.each(
function(param) {
if (structKeyExists(param, "list") && param.list) {
// Check if the 'value' is empty
if (structKeyExists(param, "value") && trim(param.value) == '') {
var errorMsg = structKeyExists(param, "name")
? "param [#param.name#] may not be empty"
: "param with list [#param.list#] Value may not be empty";

throw(errorMsg, "expression");
}
}
}
);
return this;
}

Expand Down

0 comments on commit fc8fdd5

Please sign in to comment.