farcrycore / core

FarCry Core: a web app framework for the ColdFusion language (supporting Lucee & Adobe ColdFusion engines). An ideal platform for building bespoke or tailor made solutions.
http://www.farcrycore.org
GNU General Public License v3.0
34 stars 20 forks source link

Dropdowns now work with Draft object values #74

Closed PhillipRasmussen closed 6 years ago

shib71 commented 6 years ago

I think that this change wouldn't support content types that have multiple category fields. getCategories actually returns all the categories associated with the object, not just the ones linked by that field.

PhillipRasmussen commented 6 years ago

That's how I ran into the issue. My content object had multiple cat fields. One being a dropdown and the other being jquery. I noticed the jquery one was working as expected and the dropdown wasn't. The difference being how the formtool was obtaining the selected cat value(s) for that field. editjquery is using arguments.stMetadata.value while editdropdown is using getCategories.

shib71 commented 6 years ago

Ah, sorry - I mixed up which one was the new code and which the old.