-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty rule and the input is CSS class required on submit #84
Comments
Not sure, because MeioUpload do not affect anything in views and model Juan Basso On Mon, Jun 20, 2011 at 9:56 AM, spout <
|
Hello, /app/model/ad.php:
/app/controllers/ads_controller.php:
/app/views/ads/index.ctp:
Am I doing something wrong ? |
I still have the same issue. Does anyone knows if it was fixed? |
I'm using MeioUpload (branch master) in CakePHP 1.3.10.
Photo isn't required, so I added the validate rule:
'photo' => array('Empty' => array('check' => false))
It works fine, but if I submit the form with no file upload but with other validations errors (on other fields), the file input get a CSS "required" class.
(class="input file required")
echo $this->Form->input('photo', array('type' => 'file'));
This happens only when the form is submitted, no required class without submitting the form.
I tried to put allowEmpty to false, it doesn't works too.
I don't know if it is a bug ?
The text was updated successfully, but these errors were encountered: