No selecting jurisdiction
felipefonseca@d... - September 11, 2008 - 18:04
| Project: | Creative Commons Widget |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
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.

#1
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.
#2
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.
#3
I had the same issue. Attached is a patch that uses the jurisdiction that the user selects, not the system one.
#4
Actually I didn't like that so much. Here's another go with some comments on functions.
#5
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.