Closed (fixed)
Project:
Examples for Developers
Version:
7.x-1.x-dev
Component:
Field Example
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2011 at 09:20 UTC
Updated:
10 Jul 2012 at 15:51 UTC
Jump to comment: Most recent file
Comments
Comment #2
adriaanm commentedUpdated patch.
Comment #3
adriaanm commentedComment #5
tr commentedClosed #1035782: No labels appear for example field as a duplicate - it has a good visual description of the problem and was actually the earlier bug report, but this issue has a patch so I'm going to leave this one open.
@adriaanm: Your patch is failing for two reasons. First, it has DOS line terminators instead of Unix line terminators. Second, the patch should be made from the root directory of this module. The filepaths in your patch look like
trunk/sites/all/modules/contrib/examples/field_example/field_example.modulewhere they should look likea/field_example/field_example.module(for a -p1 patch) orfield_example/field_example.module(for a -p0 patch).Comment #6
tr commentedUntagging.
Comment #7
adriaanm commentedComment #8
tr commentedThis patch works to solve the original problem! However, I noticed two additional, related problems when I tested this fix:
1) The field help text that should show up on the node/%/edit form does not show up. The help text is set on the same form where you set the label. In my test case, I added the field to the "article" content type so this form is at admin/structure/types/manage/article/fields/field_example
2) If you add more than one of these field_example fields to the content, the field default value (again set at the same place as the label) only affects the first instance of the field.
I suspect the fix for both of these will be very similar to the above fix for the missing label. Can you look into that and make a new patch to fix all these issues?
Comment #9
justafishI've tested all the issues mentioned here for all the widget types (label, help text and default values) and they all appear to have been fixed elsewhere.