Problem/Motivation

Without the call to file_usage_add, file_managed_file_validate() error occurs upon saving the form, saying that the uploaded file may not be referenced.

Steps to reproduce

TBD

Proposed resolution

See patch

Remaining tasks

Review patch

User interface changes

Improved exception handling

API changes

See patch

Data model changes

N/A

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

joseph.olstad created an issue. See original summary.

joseph.olstad’s picture

joseph.olstad’s picture

joseph.olstad’s picture

Status: Active » Needs review

  • joseph.olstad committed 26a0e9f1 on 7.x-2.x
    Issue #3475892 by joseph.olstad, jenlampton, yesct: Improved handling of...

  • joseph.olstad committed fabfebf4 on 7.x-3.x
    Issue #3475892 by joseph.olstad, jenlampton, yesct: Improved handling of...
joseph.olstad’s picture

Status: Needs review » Fixed
joseph.olstad’s picture

Status: Fixed » Closed (fixed)

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