fixed a 31 day bug in the Itransact module and a runaway process bug in the collaboration system

This commit is contained in:
JT Smith 2005-06-03 02:50:44 +00:00
parent b709a5081e
commit a0a3c7463a
3 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,7 @@
6.6.2
- fix [ 1210493 ] mistypo in query in thread.pm in table name
- Fixed a bug in the ITransact plugin that did not handle months with 31 days.
- fix [ 1200782 ] user.isModerator don't work
- fix [ 1209539 ] RSS online help URL points to casino site

View file

@ -190,7 +190,7 @@ sub canEdit {
#-------------------------------------------------------------------
sub canModerate {
my $self = shift;
return WebGUI::Grouping::isInGroup($self->get("moderateGroupId")) || $self->canEdit;
return WebGUI::Grouping::isInGroup($self->get("moderateGroupId"));
}
#-------------------------------------------------------------------

View file

@ -603,6 +603,7 @@ sub recurringTransaction {
if ($recurring) {
# initial amount = (daysInMonth - dayInMonth) / daysInMonth * amount
$initialAmount = (WebGUI::DateTime::getDaysInMonth(time) - (WebGUI::DateTime::localtime)[2])*$recurring->{amount}/WebGUI::DateTime::getDaysInMonth(time);
$initialAmount = $recurring->{amount} if ($initialAmount < 1);
$self->{_recurring} = 1;
$self->{_transactionParams} = {
START => $recurring->{start} || WebGUI::DateTime::epochToHuman(WebGUI::DateTime::addToDate(time, 0, 0, 1), '%m%d%y'),