It's the issue for a new branch with float support where patches will be provided.

Here too the link of the issue related in userpoints:

http://drupal.org/node/417830

Comments

MasterChief’s picture

Status: Needs work » Needs review
StatusFileSize
new1.5 KB

A first test.

Status: Needs review » Needs work

The last submitted patch, userpoints.patch, failed testing.

MasterChief’s picture

Status: Needs work » Needs review
StatusFileSize
new548 bytes

A patch for userpoints_contrib will be better :)

MasterChief’s picture

StatusFileSize
new2.4 KB

Ok now the real patch for userpoints_contrib.

MasterChief’s picture

StatusFileSize
new2.43 KB

oops a little too fast, now the right patch :)

berdir’s picture

Status: Needs review » Needs work
+++ userpoints_badges/userpoints_badges.install
@@ -15,7 +15,9 @@ function userpoints_badges_schema() {
-        'type' => 'int',
+        'type' => 'numeric',
+		'precision' => 9,
+		'scale' => 2,

Same here, use 2 spaces.

+++ userpoints_role/userpoints_role.module
@@ -336,7 +336,7 @@ function _userpoints_role_load_role_data($rid, $name) {
   return array(
     'rid'    => $rid,
     'name'   => $name,
-    'points' => (int)variable_get(USERPOINTS_ROLE . $rid, 0),
+    'points' => (numeric)variable_get(USERPOINTS_ROLE . $rid, 0),
     'tid'    => variable_get(USERPOINTS_ROLE . $rid .'_tid', 0),

This most likely only works because there are no tests and this is never included. See other issue

Powered by Dreditor.

MasterChief’s picture

Status: Needs work » Needs review
StatusFileSize
new2.39 KB

And now the new patch for userpoints_contrib.