merging some 5.5 changes and various bugfixes

This commit is contained in:
JT Smith 2004-07-12 01:24:41 +00:00
parent 8061e40dcf
commit 2e791c9dd5
6 changed files with 14 additions and 5 deletions

View file

@ -15,6 +15,9 @@
- bugfix [ 938266 ] Fix: 5.5.4 Synopsis ignores hideFromNav (Thanks to
Nicklous Roberts.)
- bugfix [ 961056 ] pages erroneously owned by visitor
- bugfix [ 913847 ] Minutes on times can not be updated.
- bugfix [ 939070 ] 5.5.4: Macros do not work in DataForm fields
5.5.6

View file

@ -81,6 +81,7 @@
- Dropped page tree caching and stepped onto Navigation caching. This helps
scalability a lot. Thanks to Martin Kamerbeek / Procolix
- bugfix [ 977201 ] ws client bug
- bugfix [ 969740 ] Messageboard: Deleting of postings

View file

@ -0,0 +1,4 @@
insert into webguiVersion values ('5.5.7','upgrade',unix_timestamp());
update page set ownerId=3 where ownerId=1;

View file

@ -471,11 +471,9 @@ sub setStatusDeleted {
$self->set({status=>'deleted'});
$self->getThread->decrementReplies;
$self->getThread->setStatusDeleted if ($self->getThread->get("rootPostId") == $self->get("forumPostId"));
if ($self->getThread->get("lastPostId") == $self->get("forumPostId")) {
my ($id, $date) = WebGUI::SQL->quickArray("select forumPostId,dateOfPost from forumPost where forumThreadId="
.$self->get("forumThreadId")." and status='approved'");
$self->getThread->setLastPost($date,$id);
}
my ($id, $date) = WebGUI::SQL->quickArray("select forumPostId,dateOfPost from forumPost where forumThreadId="
.$self->get("forumThreadId")." and status='approved'");
$self->getThread->setLastPost($date,$id);
}
#-------------------------------------------------------------------

View file

@ -864,6 +864,9 @@ sub www_process {
$hadErrors = 1;
delete $var->{entryId};
}
if ($row{status} eq "hidden") {
$value = WebGUI::Macro::process($row{defaultValue});
}
unless ($hadErrors) {
my ($exists) = WebGUI::SQL->quickArray("select count(*) from DataForm_entryData where DataForm_entryId=$entryId
and DataForm_fieldId=".quote($row{DataForm_fieldId}));