I'm using this module, with the latest dev version of unitsapi, so have several different categories of units. I've selected one currency (INR) and five of the six area measures acre, hectare, square foot, square yard, square mile, but not square inch).

After I save the selections, only the currency, acre and hectare choices are saved. There is no error generated -- it just doesn't save the other selections.

Any idea why?

Comments

crea’s picture

Title: Some checked units not saved » Probable improper use of API to define units for Units module
Project: Units of Measurement » Units API
Version: 6.x-1.0-beta1 » 6.x-1.x-dev
Component: User interface » Code

I guess that's because of spaces in unit ids. They should be replaced with underscores.

raspberryman’s picture

Status: Active » Fixed

Fixed: http://drupal.org/cvs?commit=322090

Let me know how things look for you, ailgm.

ailgm’s picture

I tested using version 1.15 of unitsapi.module.

It works perfectly now. Thanks for the quick fix.

raspberryman’s picture

Thanks, aligm. I also added a rudimentary simpletest for units.module integration.

Status: Fixed » Closed (fixed)

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