diff --git a/docs/changelog/5.x.x.txt b/docs/changelog/5.x.x.txt index bcbcf199c..237ea2aae 100644 --- a/docs/changelog/5.x.x.txt +++ b/docs/changelog/5.x.x.txt @@ -16,6 +16,24 @@ - Enhanced HTMLArea editor to include table editing. (Thanks to Irving Carrion.) +5.4.4 + - Updated Finnish translation. (Thanks to Markus Hynna.) + - Added Croatian translation. (Thanks to Gordon.) + - Updated Portuguese translation. (Thanks to Marcelo Ennes.) + - Updated Dutch translation. (Thanks to Leo Noordergraaf, ProcoliX, BNC Distribution, and Hugo Van der Kooij.) + - Updated German translation. (Thanks to Andreas Graf.) + - Added an association for PPS attachments. + - Readded wobject date range check that was accidentally removed. + - Fixed a bug that caused incompatibility in the HTML Area image manager with + Postgres. (Thanks to Jeremy Malcolm.) + - Fixed a leading whitespace bug with the SQL macro. + - Usernames can now be 100 characters long. + - Page ordering wasn't always maintained when deploying packages, this is now + fixed. (Thanks to Y.H.Khoe.) + - Email address didn't validate when it contained a dash (-). (Thanks to + Fekke.) + + 5.4.3 - Fixed a bug where CM's could have deleted the entire collateral manager contents if they deleted an item, then hit their back button and deleted it diff --git a/docs/credits.txt b/docs/credits.txt index 40e106d5c..5e8c6dcc6 100644 --- a/docs/credits.txt +++ b/docs/credits.txt @@ -39,9 +39,11 @@ Contributing Developers..............Peter Beardsley / Appropriate Solutions Contributing Translators.............AGOFER Ltda. Natalia Almazova + BNC Distribution Joeri de Bruin / ProcoliX Jose Caneira Junying Du / WDI + Marcelo Ennes / FIOCRUZ Andreas Graf Emiliano Grilli / Webopen Ehab Heikal @@ -53,9 +55,12 @@ Contributing Translators.............AGOFER Ltda. Andreas Ljunggren Ricardo Markiewicz Ryan McCombs + Leo Noordergraaf orosor@yahoo.com.tw Paolo Pigati / Webopen Michael Ugilt + University of Zagreb, Croatia + Hugo Van der Kooij Michael Westlund Zhou Xiaopeng diff --git a/lib/WebGUI.pm b/lib/WebGUI.pm index 28a3d8f47..d4c0ad38a 100644 --- a/lib/WebGUI.pm +++ b/lib/WebGUI.pm @@ -111,6 +111,7 @@ sub _generatePage { $cmd = "WebGUI::Wobject::".${$wobject}{namespace}; $w = eval{$cmd->new($wobject)}; WebGUI::ErrorHandler::fatalError("Couldn't instanciate wobject: ${$wobject}{namespace}. Root cause: ".$@) if($@); + if ($w->inDateRange) { $contentHash{"page.position".${$wobject}{templatePosition}} .= '
SQL Macro Failed: '.$sth->errorMessage.'
'; diff --git a/lib/WebGUI/Operation/Collateral.pm b/lib/WebGUI/Operation/Collateral.pm index 9ea82af5b..48c9d7e7a 100644 --- a/lib/WebGUI/Operation/Collateral.pm +++ b/lib/WebGUI/Operation/Collateral.pm @@ -551,7 +551,7 @@ sub www_htmlArealistCollateral { "closed.gif", $indent, "", $delete); } # Extend tree with images in current folder - $sth = WebGUI::SQL->read('select collateralId, name, filename from collateral where collateralType = "image" '. + $sth = WebGUI::SQL->read("select collateralId, name, filename from collateral where collateralType = 'image' ". "and collateralFolderId = $folderId"); while ($data = $sth->hashRef) { $data->{filename} =~ /\.([^\.]+)$/; # Get extension diff --git a/lib/WebGUI/Operation/Package.pm b/lib/WebGUI/Operation/Package.pm index d95531ab6..bef0e1488 100644 --- a/lib/WebGUI/Operation/Package.pm +++ b/lib/WebGUI/Operation/Package.pm @@ -47,7 +47,7 @@ sub _recursePageTree { %newParent = WebGUI::SQL->quickHash("select * from page where pageId=$_[1]"); _duplicateWobjects($_[0],$_[1]); ($sequenceNumber) = WebGUI::SQL->quickArray("select max(sequenceNumber) from page where parentId=$_[1]"); - $a = WebGUI::SQL->read("select * from page where parentId=$_[0]"); + $a = WebGUI::SQL->read("select * from page where parentId=$_[0] order by sequenceNumber"); while (%package = $a->hash) { $newPageId = getNextId("pageId"); $sequenceNumber++;