Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* Test cases : AUthentication - Auth, Forgot Password, Collections - Create, Delete

* Issue#885 - Done

* Issue#886 - Done

* directus#886 Reverted unwanted code
  • Loading branch information
itsmerhp authored and Lapsus committed May 8, 2019
1 parent aa4b437 commit 4995ae7
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -695,7 +695,7 @@ protected function addVirtualColumn($tableName, $columnData)
public function castFloatIfNumeric(&$value, $key)
{
if ($key != 'table_name') {
$value = is_numeric($value) ? (float)$value : $value;
$value = is_numeric($value) && preg_match('/^-?(?:\d+|\d*\.\d+)$/',$value) ? (float)$value : $value;
}
}

Expand Down

0 comments on commit 4995ae7

Please sign in to comment.