Closed PhillipRasmussen closed 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.
Ah, sorry - I mixed up which one was the new code and which the old.
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.