From b51e210af5f00eadacedd7fe87b8f3371a726949 Mon Sep 17 00:00:00 2001 From: JT Smith Date: Sun, 2 May 2004 15:18:29 +0000 Subject: [PATCH] - Bugfix [ 942865 ] urlizedTitle problem. (Thanks to tr0nd). --- docs/changelog/6.x.x.txt | 4 +++- lib/WebGUI/Page.pm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/changelog/6.x.x.txt b/docs/changelog/6.x.x.txt index 1be0373e7..dd2ffbf63 100644 --- a/docs/changelog/6.x.x.txt +++ b/docs/changelog/6.x.x.txt @@ -19,7 +19,9 @@ - Bugfix [ 925586 ] HttpProxy ignores javascript in (thanks to Nicklous Roberts). - Added cacheTTL param to WSClient to tweak expiration of SOAP returns. - + - Bugfix [ 943298 ] Events Calendar recurrence error in WG6.0 (thanks to + Frank Dillon). + - Bugfix [ 942865 ] urlizedTitle problem. (Thanks to tr0nd). 6.0.1 diff --git a/lib/WebGUI/Page.pm b/lib/WebGUI/Page.pm index a57a8d014..b2b3a472d 100644 --- a/lib/WebGUI/Page.pm +++ b/lib/WebGUI/Page.pm @@ -455,7 +455,7 @@ The page id of the page you're creating a URL for. sub makeUnique { my ($url, $test, $pageId); - $url = $_[0]; + $url = $_[0] || "_1"; $pageId = $_[1] || "new"; while (($test) = WebGUI::SQL->quickArray("select urlizedTitle from page where urlizedTitle='$url' and pageId<>'$pageId'")) { if ($url =~ /(.*)(\d+$)/) {