From 4aeb70d3235434852c98a056ae46423ced322d78 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Sat, 23 Jul 2011 14:38:31 -0700 Subject: [PATCH] Fix a bad script link in the JsonTable. Fixes bug #12202. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/JsonTable.pm | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index bbec8ee3a..aa590d5b2 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -4,6 +4,7 @@ - added the optional WebGUI::Content::PDFGenerator, not enabled by default (see the module's documentation). - fixed #12204: Default forum notification template produces invalid HTML + - fixed #12202: JsonTable refers to unexistent YUI file 7.10.20 - fixed: Do not call group methods on an undefined value. diff --git a/lib/WebGUI/Form/JsonTable.pm b/lib/WebGUI/Form/JsonTable.pm index 9e8403906..84b0d6d5b 100644 --- a/lib/WebGUI/Form/JsonTable.pm +++ b/lib/WebGUI/Form/JsonTable.pm @@ -229,6 +229,27 @@ sub toHtml { $output .= ''; # Existing rows are entirely built in javascript from the JSON in the hidden field +<<<<<<< HEAD +======= + $style->setScript( + $url->extras('yui/build/connection/connection-min.js'), + { type => 'text/javascript' }, + ); + $style->setScript( + $url->extras('yui/build/yahoo-dom-event/yahoo-dom-event.js'), + { type => 'text/javascript' }, + ); + $style->setScript( + $url->extras('yui/build/json/json-min.js'), + { type => 'text/javascript' }, + ); + $style->setScript( + $url->extras('yui-webgui/build/i18n/i18n.js'), + { type => 'text/javascript' }, + ); + $output .= sprintf '', + $url->extras('yui-webgui/build/form/jsontable.js'); +>>>>>>> 7d20406... Fix a bad script link in the JsonTable. Fixes bug #12202. $output .= '