Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
11 Aug 2010 at 11:14 UTC
Updated:
3 Jan 2014 at 01:42 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
plachWe were missing a couple of if. Tests are included.
Comment #2
plachThe PHPDoc was missing.
Powered by Dreditor.
Comment #3
sunNormally, a field without text processing shouldn't have a 'format' field value item key at all, no?
I would have expected an exception on this line:
$format_id = $item['format'];
Why do we have to create a new field and instance? Isn't the regular body field sufficient?
Can we move this above "// Create content", so as to keep $edit and drupalPost() together?
Also, drupalLogout() does not need to be called manually.
Powered by Dreditor.
Comment #4
plachImplemented #3.
Well, I don't know if we want to open a separate issue, but in this case
$item['format']is NULL.Body is a long text, it can't have plain text processing.
Edit: Totally FALSE, my bad, I checked the wrong Field UI page :)
Comment #5
plachHere it is the patch with the body instead of the custom field in the test.
Comment #6
sunThanks!
Not to hold off this fix, but in the future, it would be a good to group logically related code together, i.e.:
So each comment forms a chapter, unit, or "single task" within the test procedure.
Powered by Dreditor.
Comment #7
dries commentedCommitted to CVS HEAD. Thanks!
Comment #8
yched commentedThe patch in #447816-153: WCAG violation: Relying on a color by itself to indicate a field validation error got committed along with this one : http://drupal.org/cvs?commit=408732