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

nedjo - September 11, 2008 - 18:08

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

nedjo - September 17, 2008 - 18:40
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.

#3

arthurf - September 24, 2008 - 21:23

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

AttachmentSize
diff.patch 2.48 KB

#4

arthurf - September 24, 2008 - 23:07

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

AttachmentSize
diff.patch 2.84 KB

#5

arthurf - September 24, 2008 - 23:53

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.

AttachmentSize
diff.patch 4.29 KB
 
 

Drupal is a registered trademark of Dries Buytaert.