mergetag in view not resolving if there are no files
-
Hi, first of all I want to say that you did a great job with this plugin!
I’m having a suggestion. When using the {bulk_download_link} mergetag in a gravity view then the merge tag shows as the actual mergetag {bulk_download_link} when there are no uploaded files for an entry.
I had a look at your code and this would be an easy fix. In the DownloadMergeTag.php file, in the method “replace_bulk_download_link” on line 57, when there are no upload fields, instead of returning the $text as is, you could return something like “no files uploaded”? that would solve my problem but I’m not sure if there are other scenarios where this would be a problem?
Again I want to thank you for this wonderful plugin!
Kind regards,
Johan
- The topic ‘mergetag in view not resolving if there are no files’ is closed to new replies.