Download & Extend

Use #limit_validation_errors on File upload and removal

Project:Drupal core
Version:7.x-dev
Component:file.module
Category:bug report
Priority:normal
Assigned:quicksketch
Status:closed (fixed)

Issue Summary

This is an extension of #370537: Allow suppress of form errors (hack to make "more" buttons work properly), which simply adds support for File module's manage_file FAPI element.

To reproduce:
- Install Drupal 7
- Create a new article node.
- Do not enter a title.
- Upload a file.
- After the file uploads, the user gets the error "The Title field is required.", which is confusing since there's no reason why a file shouldn't be uploaded before a title is entered.

AttachmentSizeStatusTest resultOperations
file_validation_fix.patch835 bytesIdlePassed on all environments.View details

Comments

#1

Status:needs review» reviewed & tested by the community

I tested that the error is not shown anymore. And I agree that it is very confusing that title is required to upload an image.

#2

Status:reviewed & tested by the community» fixed

Committed to HEAD! Thanks!

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here