RE: [coldbox:11313] Interesting problem

event.getValue(‘ItemId’, 0, true)
When this is dumped it is a string and it is blank.

To cover the obvious, did you check and see if the private request collection contained a value called “itemId” which was an empty string?
The default only kicks in if the value is not found.



You know that is a good question Brad, I would like to say with a 100% certainty that I did but I think I might have to double check.

Cheers Brad, I swear I looked at it and didn’t see it but it was because I was pulling a query in before hand, and didn’t check to see if the query count returned a result. then I referenced the id and stored it into the PRC.

I swear an empty query should have thrown an exception there, but it didn’t…