Hi!

When creating 2 (or more) "download all files" fields for one content type, it uses only one name (I think the first one) for the zip-files.

I've also tried to archive different zip-files name with only one field and multiple instances without any luck. I couldn't find any good token to use (I have applied the patch...). Anyone have any idea how to fix this?

Best regards,
Mats

Comments

30equals’s picture

Yep, you're right. The filename gets overridden by the next one.. I'm looking into it further, and hope to provide a fix shortly!
Thnx for reporting it.

queenvictoria’s picture

I'm about to look at this. Any movement @30equals?

30equals’s picture

No movement yet no.... didn't have any time to look into this.

queenvictoria’s picture

Status: Active » Needs review
StatusFileSize
new2.09 KB

The issue is that the paths for each of the download link fields are the same (neither nid nor delta vary). How about this? Add the field_name into the path and check for it when building the zip archive? See attached patch.

queenvictoria’s picture

Version: 7.x-2.4 » 7.x-2.x-dev
queenvictoria’s picture

Assigned: matsjacobsson » Unassigned
30equals’s picture

Status: Needs review » Closed (fixed)

Looking good, tested by myself, committed to DEV : http://drupalcode.org/project/download.git/commit/797f5f6
Thanx!