Problem: Displaying empty results lists produces "There are no submissions for this form." followed by a "View this form" link that is an absolute URL, therefore breaks if Drupal is installed in a subdirectory.
Fix:
For the two files...
sites/all/modules/webform/views/default_views/webform_submissions.inc
sites/all/modules/webform/views/default_views/webform_results.inc
Replace the line...
$handler->display->display_options['empty']['area_text_custom']['content'] = 'There are no submissions for this form. View this form.';
With the line...
$handler->display->display_options['empty']['area_text_custom']['content'] = t('There are no submissions for this form. View this form.', array('!url' => url('node/')));
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | webform-link-2828654-4.patch | 2.24 KB | renatog |
Comments
Comment #2
liam morlandCan you provide your change as a patch?
Comment #3
renatog commentedComment #4
renatog commentedHi @liam-morland and @ses3drupal.
Here is the patch with the fix.
Regards.
Comment #6
liam morlandThanks very much.
Comment #7
renatog commentedI thank you @liam-morland.
Hugs.
Comment #9
renatog commented