I saw an error using file fields to hidding all my "attachements" itens at one page.

We've 2 files attached using file_field, a normal function for a drupal 7.
If we need to display these 2 itens, we just need to check the "Display" checkbox for each item. Supose we need hide these 2 itens, we just need to UNcheck these 2 checkboxes, but the second item wasn´t hiden.

Follow the patch file to correct this bug and the screenshot of my page.

Comments

droplet’s picture

Status: Active » Needs review
StatusFileSize
new542 bytes

I guess your patch won't pass testbot, reroll patch for bots only.

antoanne’s picture

StatusFileSize
new455 bytes

Follow new patch file. Now using the drupal creating patch tutorial.

Status: Needs review » Needs work

The last submitted patch, file.field_.inc_.patch, failed testing.

antoanne’s picture

StatusFileSize
new550 bytes

Follow new patch file again. Now using git diff.

droplet’s picture

Status: Needs work » Reviewed & tested by the community

@antoanne,

you need to add no-prefix
actually the patch at #1 is working and webchick will count it as your work :)

because same patch, so RTBC

antoanne’s picture

StatusFileSize
new542 bytes

Let's see if is correct now! ;)

Josh The Geek’s picture

Version: 7.0 » 7.x-dev

Drupal tests bugs against dev releases.

bfroehle’s picture

I'll confirm the issue and have manually tested the patch. +1 RTBC.

montesq’s picture

The patch works well here too...

dave reid’s picture

Marked #1041508: Problem with file_field_prepare_view as a duplicate of this issue. Confirming this is RTBC.

damjan.cvetan’s picture

The patch works well. :) I didn't see it before, so the patch is the same as mine.

dave reid’s picture

Status: Reviewed & tested by the community » Closed (duplicate)

Better patch with a test in #932426: 2ND file uploaded is displayed when display option is unchecked, so marking this issue as a duplicate.