gavin1420 / yii-user

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

file field widget delete exception #40

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. add new profile field
type: varchar
required: no
fieldsize: 50
fieldsize_min: 0
widget: filefield
widgetparams
  -allowEmpty: true
  -allowFiles: 1

2. edit profile -> upload file
3. edit profile -> delete file

What is the expected output? What do you see instead?
a) the file name is not displayed on the edit profile page,
   instead: 'no file chosen'
b) checking 'delete file' and submitting the page throws exception:
CDbCommand failed to execute the SQL statement: SQLSTATE[23000]: Integrity 
constraint violation: 1048 Column 'avatar' cannot be null

Version: revision r66

Original issue reported on code.google.com by mwi.nor@googlemail.com on 2 Nov 2010 at 2:05

GoogleCodeExporter commented 9 years ago
failed to reproduce such a situation

Original comment by mish...@gmail.com on 2 Dec 2010 at 11:59