Hello,
I have these rules on Customer active record/model:
public function rules()
{
return array(
array('name','length','max'=>128),
array('address','length','max'=>128),
array('phone','length','max'=>50),
array('excel_file','file','types'=>'xls'),
array('name', 'required'),
array('excel_file', 'required', 'on'=>'create'),
);
But in update action triggers a required error. I guess that the 'types' rules introduces the required constraint.
How to solve this ?