From 24faa80c1b3d00348b829c77e44a0dbe750f8862 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Wed, 16 May 2007 16:55:28 +0000 Subject: [PATCH] fix: HTMLArea crashing page if Rich Editor could not be loaded --- docs/changelog/7.x.x.txt | 2 ++ lib/WebGUI/Form/HTMLArea.pm | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 245b2838e..09eef60ee 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,8 @@ http://www.plainblack.com/bugs/tracker/getlineage-joinclass-expects-string-not-array-ref#wzbxkyWPuzsCRBr3x9QImA - fix: "Rejected" messages in CS mail - fix: AOIHits and AOIRank not working (Yung Han Khoe / United Knowledge) + - fix: HTMLArea form control crashing page if the specified Rich Editor could + not be loaded. 7.3.17 diff --git a/lib/WebGUI/Form/HTMLArea.pm b/lib/WebGUI/Form/HTMLArea.pm index 47223de7d..21c00e286 100644 --- a/lib/WebGUI/Form/HTMLArea.pm +++ b/lib/WebGUI/Form/HTMLArea.pm @@ -132,7 +132,7 @@ sub toHtml { $self->set("resizeable", 0); return $self->SUPER::toHtml.$richEdit->getRichEditor($self->get('id')); } else { - WebGUI::ErrorHandler::warn($i18n->get('rich editor load error','Form_HTMLArea')); + $self->session->errorHandler->warn($i18n->get('rich editor load error','Form_HTMLArea')); return $self->SUPER::toHtml; }