From 18b5da96d3b7ea886d2ee3d0b179123cf8c03e1f Mon Sep 17 00:00:00 2001 From: JT Smith Date: Mon, 30 Jul 2007 14:35:59 +0000 Subject: [PATCH] - Fixed a bug where crons wouldn't load into spectre's queue at startup. - Fixed a bug in the Collaboration System where posts from the Safari browser would be submitted without changes. --- docs/changelog/7.x.x.txt | 3 +++ lib/Spectre/Cron.pm | 2 +- lib/WebGUI/Asset/Post.pm | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 591521cd0..c7eab609a 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,4 +1,7 @@ 7.4.1 + - Fixed a bug where crons wouldn't load into spectre's queue at startup. + - Fixed a bug in the Collaboration System where posts from the Safari browser + would be submitted without changes. 7.4.0 - api: Form Controls and Workflow Activities may now include web based helper diff --git a/lib/Spectre/Cron.pm b/lib/Spectre/Cron.pm index 2fc15aadd..798230a60 100644 --- a/lib/Spectre/Cron.pm +++ b/lib/Spectre/Cron.pm @@ -127,7 +127,7 @@ An integer (1,2,3) that determines what priority the workflow should be executed sub addJob { my ($self, $params) = @_[OBJECT, ARG0]; my $id = $params->{config}."-".$params->{taskId}; - if ($params->{config} eq "" || $params->{taskId}) { + if ($params->{config} eq "" || $params->{taskId} eq "") { $self->error("Can't add a schedule with missing data: $id"); } else { diff --git a/lib/WebGUI/Asset/Post.pm b/lib/WebGUI/Asset/Post.pm index 344f3b210..e7c71cdc5 100644 --- a/lib/WebGUI/Asset/Post.pm +++ b/lib/WebGUI/Asset/Post.pm @@ -1292,7 +1292,7 @@ sub www_edit { richEditId=>$self->getThread->getParent->get("richEditor") }); $var{'form.submit'} = WebGUI::Form::submit($session, { - extras=>"onclick=\"this.value='".$i18n->get(452)."'; this.form.func.value='editSave'; this.form.submit();return false;\"" + extras=>"onclick=\"this.value='".$i18n->get(452)."'; this.form.func.value='editSave';return true;\"" }); $var{'karmaScale.form'} = WebGUI::Form::integer($session, { name=>"karmaScale",