gavin1420 / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Field Type "Float" Won't Accept 10,2 Format #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create new profile field.
2. Set field type to "Float"
3. Give it a default size value of 10,2
4. Save field.
5. Error returned saying field value must be an INT.

What is the expected output? What do you see instead?

- It should just save the field value.  The solution is to change field_size 
field in the profile_fields table from INT to VARCHAR.

What version of the product are you using? On what operating system?

Latest version of the module as of this bug report.

Please provide any additional information below.

N/A

Original issue reported on code.google.com by chris.va...@gmail.com on 21 Nov 2010 at 12:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm using @version $Id: UserModule.php 105 2011-02-16 13:05:56Z mishamx $ and 
your message didn't help me

There is my solution:

/protected/modules/user/models/Profile.php

line 88: array_push($rules,array(implode(',',$numerical), 'numerical', 
'integerOnly' => true));

need to replace with: array_push($rules,array(implode(',',$numerical), 
'numerical'));
That's not a good solution, but it solves the problem in my case

Original comment by awesomes...@gmail.com on 31 Dec 2011 at 4:11