When I create a timefield and set it to hidden in the default display, the settings don't get loaded, which means the value doesn't show in the edit form.

Notice: Undefined index: display_format in timefield_field_load() (line 813 of timefield/timefield.module).
Notice: Undefined index: display_format in timefield_field_widget_form() (line 714 of timefield/timefield.module).

Comments

mojzis’s picture

workaround : select to use "USE CUSTOM DISPLAY SETTINGS" for the full content, hide it there and leave it on in the default.

matt.elkins’s picture

Thanks for the workaround, @mojzis! I'll try and make a patch for this bug if I get a chance...

wesnick’s picture

Thanks for the bug report. This is fixed in commit #8b80cec.

If display is hidden, then it will just use the default formatting settings to format it for input.

wesnick’s picture

Status: Active » Fixed

[deleted]

Status: Fixed » Closed (fixed)

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