diff --git a/core/src/main/java/lucee/runtime/tag/InvokeArgument.java b/core/src/main/java/lucee/runtime/tag/InvokeArgument.java index ef0bb54925..d5d8b1893c 100755 --- a/core/src/main/java/lucee/runtime/tag/InvokeArgument.java +++ b/core/src/main/java/lucee/runtime/tag/InvokeArgument.java @@ -22,6 +22,7 @@ import lucee.runtime.exp.ApplicationException; import lucee.runtime.exp.PageException; import lucee.runtime.ext.tag.TagImpl; +import lucee.runtime.op.Caster; // TODO tag invokeargument // attr omit @@ -48,6 +49,13 @@ public final class InvokeArgument extends TagImpl { * @param value value to set **/ public void setValue(Object value) { + if (value instanceof String) { + Double d = Caster.toDouble(value, null); + if (d != null) { + this.value = d; + return; + } + } this.value = value; } diff --git a/test/tickets/LDEV5629.cfc b/test/tickets/LDEV5629.cfc index f28dd87b08..9260a538aa 100644 --- a/test/tickets/LDEV5629.cfc +++ b/test/tickets/LDEV5629.cfc @@ -3,7 +3,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" { describe( title="Test case LDEV-5629 invoke with tag based cfc", body=function() { - it(title="checking cfinvokeargument preserves types", skip=true, body=function( currentSpec ) { + it(title="checking cfinvokeargument preserves types", body=function( currentSpec ) { ``` @@ -27,7 +27,7 @@ component extends="org.lucee.cfml.test.LuceeTestCase" { describe( title="Test case LDEV-5629 invoke with script based cfc", body=function() { - it(title="checking cfinvokeargument preserves types", skip=true, body=function( currentSpec ) { + it(title="checking cfinvokeargument preserves types", body=function( currentSpec ) { ```