Skip to content

Commit

Permalink
Fix to get it to work with Import/export CSV extension.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleanders committed Jan 15, 2012
1 parent 4066100 commit 9a24f01
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions fields/field.number.php
Expand Up @@ -100,6 +100,18 @@ public function checkPostFieldData($data, &$message, $entry_id=NULL) {

return self::__OK__;
}

public function processRawFieldData($data, &$status, $simulate = false, $entry_id = null) {
$status = self::__OK__;

if (strlen(trim($data)) == 0) return array();

$result = array(
'value' => $data
);

return $result;
}

/*-------------------------------------------------------------------------
Filtering:
Expand Down

1 comment on commit 9a24f01

@frenkel
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please accept this one, I verified it works :)

Please sign in to comment.