summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsun2008-09-05 20:20:24 (GMT)
committer sun2008-09-05 20:20:24 (GMT)
commit920896165b974037908031904dfd058aae09ab78 (patch)
tree534135e852b6acc23fce9f6956bb56a9a07a9f59
parente4d720b2e5effe23181d9e6d5659527e19f35a82 (diff)
#289218 by gustav: Fixed E^ALL notice if node has no body field.
-rw-r--r--CHANGELOG.txt1
-rw-r--r--wysiwyg_editor.module6
2 files changed, 5 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 64bbde8..d7543dd 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -6,6 +6,7 @@ Wysiwyg x.x-x.x, xxxx-xx-xx
Wysiwyg 6.x-x.x, xxxx-xx-xx
---------------------------
+#289218 by gustav: Fixed E^ALL notice if node has no body field.
#304243 by sun: Code clean-up for wysiwyg_editor_user_status().
#299108 by toniw: Added setting for TinyMCE's auto-cleanup paste feature.
#293916 by sun: Clarified TinyMCE compatibility in README.txt.
diff --git a/wysiwyg_editor.module b/wysiwyg_editor.module
index ca2b4f9..05f0a14 100644
--- a/wysiwyg_editor.module
+++ b/wysiwyg_editor.module
@@ -77,8 +77,10 @@ function wysiwyg_editor_elements() {
*/
function wysiwyg_editor_form_alter(&$form, &$form_state) {
// Disable 'teaser' textarea.
- unset($form['body_field']['teaser_js']);
- $form['body_field']['teaser_include'] = array();
+ if (isset($form['body_field'])) {
+ unset($form['body_field']['teaser_js']);
+ $form['body_field']['teaser_include'] = array();
+ }
}
/**