Closed (fixed)
Project:
Webform
Version:
7.x-4.0-rc6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Dec 2012 at 19:21 UTC
Updated:
10 Sep 2014 at 20:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mrpauldriver commentedI am finding the same and thank you for the workaround @nodecode
This needs fixing though.
Comment #2
mrpauldriver commentedComment #3
AldenC commentedThank you very much for integrating Views into Webform 4.X. It opens up vast opportunties to manage submissions.
The Create a label option of "No label" does not work. I also first used a work-around by choosing "Custom label" and then setting it to "". But I decided to look a bit deeper and I found the culprit.
Line 103 of webform_handler_field_submission_data.inc which currently reads:
elseif (isset($this->options['label'])) {
apparently $this->options['label'] is populated on default so function label() never returns '' for the "No label" option. A simple solution is to change this line to read:
elseif ($this->options['custom_label'] === 'custom' && isset($this->options['label'])) {
There may be a better way to fix this, but this worked for me.
Comment #4
quicksketchThanks @AldenC, that sounds like you're on the right track here. If this gets rolled as a patch I'll try it out and see if it solves the porblem.
Comment #5
danchadwick commentedCommitted to 7.x-4.x and 8.x.