Not sure if this it’s just me, but I’ve had a few custom types with a UUID property using ftRenderType=“list”. When saving it added a comma at the end of the UUID causing the webtop list to fail with a object passed to getData not of type UUID.
Just did a test on 7.0.5 and it’s still returning ‘,’ as the value for an unselected select field.
A quick mod of the UUID.cfc formtool would fix this. (Around line 62) Move the check for if stFieldPost.value EQ “,” to outside of the if listLen(stFieldPost.value)
Because the list length of a string with just a comma in it returns 0.
It would be so awesome if you could actually post code into discourse.
Ahh, I thought it was only a bug in 7.x and that earlier versions were already fixed somehow… In that case it’d have to be cherry picked into the older maintenance branches. Does this affect both p620 and p630?
Can anyone easily confirm if p620 is also affected? I don’t have time to fully investigate myself right now, but I can do the cherry picks if that’s all we need (or accept a pull request)
I don’t think so, this thread was about the UUID formtool and the pull request from Jorgen patched uuid.cfc, so maybe your issue is a little different?
Okay. I’ll have to see what I can find and discover why FarCry is adding a comma to the end of the list. At the moment I don’t have time to investigate so I’m just doing a beforeSave() and manually stripping the comma out.