Hi,

unfortunately the table title is not showing when I have a look at the form.

Best,
Tobias

Comments

roball’s picture

Title: Table title not showing » Label and Description are not shown
Category: feature » bug

Can confirm this bug. Both the Label and Description of a Table element component are not shown, neither in View, nor in Edit mode.

Jelle_S’s picture

Status: Active » Fixed

Fixed in the latest dev version

roball’s picture

Thanks for fixing it so quickly. Are you sure the change

-  return theme('table', $header, $rows);
+  return theme('form_element', $element, theme('table', $header, $rows));

is correct? I mean theme() inside theme().

Jelle_S’s picture

Yes,
Have a look at theme_form_element. It is basically a wrapper function to display the title and description. It takes two parameters: $element and $value

$element: An associative array containing the properties of the element. Properties used: title, description, id, required

$value: The form element's data.

In our case The form element's data is the table with its components

roball’s picture

Status: Fixed » Needs work

Excellent, thank you. Label and Description are now shown on the web page. A small problem is still there, however: the Label is missing in the email being sent on a submission, as part of %email_values.

attiks’s picture

Assigned: Unassigned » Jelle_S
Jelle_S’s picture

Status: Needs work » Fixed

I'm sorry I overlooked it, this was indeed an issue when the mail was sent in plain text, fixed in latest dev

roball’s picture

Thank you - can confirm that this now works fine in v6.x-1.4+7-dev (2012-May-17).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.