This bug is very serious:
If I leave the excerpt field blank, then nothing appears on the frontpage and the break (as html comment) directive doesn't work either!
The correct behaviour is:
Excerpt should check whether the textbox "Excerpt" is blank or filled in:
- If it it filled, then it works just as it works now.
- If it is blank, then it passes control to the blank (html comment) directive.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | blank-excerpt.patch | 535 bytes | ezheidtmann |
Comments
Comment #1
ezheidtmann commentedHere's a patch that fixes this by automatically filling in the excerpt with the default teaser when the excerpt is left blank. Changes to the node body won't update the excerpt, but the excerpt can be set to the teaser by blanking the excerpt and then previewing or submitting the node.
Comment #2
ezheidtmann commentedPlease be aware I'm new to Drupal hacking. This patch, simple as it is, may do weird things I haven't anticipated.
Comment #3
ezheidtmann commentedOf course, this is now at patch status.
Comment #4
Steven commentedFixed in CVS. I added some explanation about this (leave blank to autogenerate).
Note that most contributed projects follow the drupal codings standards. Your patch had tabs in it.
Comment #5
nsk commentedNow that it is fixed in CVS, how can I apply the fix? I mean, I use the 4.5 version. Will you ship an updated 4.5 tar.gz file including the fix?
Comment #6
(not verified) commented