Download & Extend

Leading 0 in uc_vat_number.js cause country codes to be interpreted in octal

Project:Ubercart VAT Number
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:wimh
Status:closed (fixed)

Issue Summary

The european_countries list in uc_vat_number.js has leading zeros for the entries 040 and 056 (Austria and Belgium), which causes them to be interpreted as octal numbers. Belgium and Austria are therefor not considered European countries, so no VAT number entry is possible. A patch to remove these zeros is attached.

AttachmentSize
uc_vat_number.js_.patch841 bytes

Comments

#1

The same problem is also in uc_vat_number.module:uc_vat_number_checkout_validate()

#2

I added a patch to #645260: Is there something wrong, which removes the leading 0 in the module file and disables the javascript stuff amongst other fixes

#3

Assigned to:Anonymous» wimh
Status:active» fixed

Patch removing leading 0 has been committed.

#4

Status:fixed» closed (fixed)

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

nobody click here