Both file.devel_generate.inc and image.devel_generate.inc misses to set a proper filename property to the $file,
so if something like the relation module uses entity_label on a file entity it fails.

CommentFileSizeAuthor
#1 1288674-generate-filename.patch1.42 KBdawehner
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

Status: Active » Needs review
FileSize
1.42 KB

Here is a patch

Hydra’s picture

Status: Needs review » Reviewed & tested by the community

Works exelent!

salvis’s picture

@Hydra: What exactly did you test?

Are you by any chance sitting across the desk from dereine?

salvis’s picture

Status: Reviewed & tested by the community » Needs review

I'd like to get some more feedback on this (or moshe to check it out).

The patch looks reasonable, but I don't know how to test it.

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

Looks ok to me.

salvis’s picture

Status: Reviewed & tested by the community » Fixed

Pushed to D8/D7 — thanks!

Status: Fixed » Closed (fixed)

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

clemens.tolboom’s picture

salvis’s picture

@clemens.tolboom: I don't understand what you're trying to say in #8.