If a directory is added as the product feature using File Downloads module, then the "purchased files" tab in the user profile shows a link for the top level directory also. Clicking on this directory link gives an error. Since all the files are individually listed anyway, we do not need the link for the directory.

Attached patch checks for the entries which are directories and removes them from the table.

Comments

jayajha’s picture

StatusFileSize
new1.42 KB

Same problem was there in the mails being sent out as well. Patch to correct them both.

tr’s picture

This issue is actually a duplicate of #717990: Don't add directories to uc_file_users table. Normally I would close this thread and direct you to contribute to that other one, but in this case the only proposed patch is here, so I'm going to mark the other as a duplicate.

longwave’s picture

Status: Needs review » Needs work

The last submitted patch, uc_file_do_not_make_dir_links_final.patch, failed testing.

IFL Todd’s picture

http://drupal.org/node/1189232 This is becoming quite the aggravation/nuisance for our constituents as well our support staff.

Is there any light at the end of the tunnel?

Thanks so much,
Todd

tr’s picture

Version: 6.x-2.2 » 6.x-2.x-dev
Status: Needs work » Needs review

@IFL Todd: You could try the patch and let us know if that works and is ready to be put into Ubercart ...

tr’s picture

Status: Needs review » Needs work

The last submitted patch, uc_file_do_not_make_dir_links_final.patch, failed testing.

tr’s picture

Version: 6.x-2.x-dev » 8.x-4.x-dev
Issue summary: View changes