Hi there

I have just installed cc-widget. I went to the settings page and selected my jurisdiction (brazil). The system returned a success message:

Setting license version 2.5, latest for selected jurisdiction br.

But the settings page still shows US as selected. Then I have created a field in a content type, but the only license options available are the US.

CommentFileSizeAuthor
#5 diff.patch4.29 KBarthurf
#4 diff.patch2.84 KBarthurf
#3 diff.patch2.48 KBarthurf

Comments

nedjo’s picture

This is probably a caching problem, e.g., an error in the logic of how and when the cache of options is refreshed. I'll have a look when I get a chance.

nedjo’s picture

Status: Active » Needs review

I've applied an attempted fix. Could you update your version to the latest Dev 5 and report back? Did this solve the issue? If so, pls mark this issue fixed. Thanks.

arthurf’s picture

StatusFileSize
new2.48 KB

I had the same issue. Attached is a patch that uses the jurisdiction that the user selects, not the system one.

arthurf’s picture

StatusFileSize
new2.84 KB

Actually I didn't like that so much. Here's another go with some comments on functions.

arthurf’s picture

StatusFileSize
new4.29 KB

Ok this time I'm not kidding around. Or something. Or perhaps three times is a charm. Basically I added variable saves to the submit handler and more commenting on functions.