[Coldbox 4.3.0+188] flash.get with default value throws error - bug

When I do #flash.get(name=“info”, default="")# I get an error " info not found in flash scope. Valid keys are ."
This however works #flash.get(“info”,"")#

I believe the default value should kick in if the variable does not exist in flash so this looks like a bug.

The argument name is `defaultValue` instead of `default`. Blame ACF. :wink:

It looks like the Coldbox document needs to be updated then as it is using ‘default’ at https://coldbox.ortusbooks.com/content/full/flash_ram/using_flash_ram.html#more-examples

Thanks! You can do a pull request by clicking on the “Edit this Page” at the top or by going straight to this link: https://github.com/ortus-docs/coldbox-docs/blob/master/full/flash_ram/using_flash_ram.md

Created the pull request :+1:t2: Thanks for your help!