I'm working on an Ubercart site, where I need this module and I know it's under Dev., and I get this Notice...

Notice: Undefined index: da i uc_termsofservice_get_node() (linje 236 af C:\Users\Studio\Documents\My Web Sites\drupal-7.10\sites\all\modules\uc_termsofservice\uc_termsofservice.module).

...otherwise, it's seems to work predy well!

CommentFileSizeAuthor
#1 1456276.patch550 bytestr

Comments

tr’s picture

Assigned: LarsKaae » Unassigned
Priority: Normal » Minor
Status: Active » Needs review
StatusFileSize
new550 bytes

I think that's because you're using the translation module with the Danish translation ('da') and you don't have a translation for the terms of service node.

I don't use the translation module so I can't test this myself, but I think this patch should eliminate the error. Please let me know if it fixes things.

FranckV’s picture

Hi TR, thanks for the fix. It works perfectly !

I am like LarsKaae, I use translations on 100% of my Drupal sites in order to get ready for translated content. But I don't initially translate : I keep undefined language.

tr’s picture

Status: Needs review » Fixed

Thanks for testing that. I committed the fix to 6.x-1.x and 7.x-1.x.

LarsKaae’s picture

Before i was getting the patch, I was updating the module today....and the error disappeare.

It's a great module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.