After last update, audio field is not displayed because the "display" item is set to 0.
just changing to 1 in the database solves the problem

Comments

Stado’s picture

which db please? could you be more specific for newbies like me? :)
many thanks in advance

SORRY, just found it. but isn't it strange that the it is set to "0" by default when uploading a new file?

Thanks a million anyway!

egarias’s picture

The row is "field_audio_display" in the table "field_data_field_audio" that is generated after defining the field_audio in node cck.

When uploading other media, the "$file->display" is mostly if not allways set to 1. Setting display =0, result in no display in node view.

But this is a change in this new release of Audiofeld, the previous one was working Ok.

Stado’s picture

is there a way to force a default value in this table?

egarias’s picture

The default value in table is already set to 1. So somewhere in the code this value is set to 0.

Please this make this module UNNUSABLE! I have to manually change this value in the database

Stado’s picture

found this in audio.field.inc:

// Add display_field setting to field because file_field_widget_form() assumes it is set.
$field['settings']['display_field'] = 0;

changed it to "1" and ... no effect :(

tamerzg’s picture

Status: Active » Patch (to be ported)

It seems issue was occurring only when "Enable Display field" checkbox is checked in field settings, which then shows this option as checkbox to user during the file upload. There was a bug with latest audiofield which overwrote this checkbox and therefore its value would remain zero.
You can take beta8 where this is fixed.

This fix probably needs backport for D6 version as well.

Stado’s picture

i confirm that beta 8 works fine. thanks!

egarias’s picture

Works for me also!
Thanks

ws.agency’s picture

Issue summary: View changes

Patch will be ported.

ws.agency’s picture

Status: Patch (to be ported) » Fixed

Patch ported together with another patches.

Status: Fixed » Closed (fixed)

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