fixed a 31 day bug in the Itransact module and a runaway process bug in the collaboration system
This commit is contained in:
parent
b709a5081e
commit
a0a3c7463a
3 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,7 @@
|
||||||
6.6.2
|
6.6.2
|
||||||
- fix [ 1210493 ] mistypo in query in thread.pm in table name
|
- 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
|
- fix [ 1209539 ] RSS online help URL points to casino site
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,7 @@ sub canEdit {
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
sub canModerate {
|
sub canModerate {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
return WebGUI::Grouping::isInGroup($self->get("moderateGroupId")) || $self->canEdit;
|
return WebGUI::Grouping::isInGroup($self->get("moderateGroupId"));
|
||||||
}
|
}
|
||||||
|
|
||||||
#-------------------------------------------------------------------
|
#-------------------------------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -603,6 +603,7 @@ sub recurringTransaction {
|
||||||
if ($recurring) {
|
if ($recurring) {
|
||||||
# initial amount = (daysInMonth - dayInMonth) / daysInMonth * amount
|
# initial amount = (daysInMonth - dayInMonth) / daysInMonth * amount
|
||||||
$initialAmount = (WebGUI::DateTime::getDaysInMonth(time) - (WebGUI::DateTime::localtime)[2])*$recurring->{amount}/WebGUI::DateTime::getDaysInMonth(time);
|
$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->{_recurring} = 1;
|
||||||
$self->{_transactionParams} = {
|
$self->{_transactionParams} = {
|
||||||
START => $recurring->{start} || WebGUI::DateTime::epochToHuman(WebGUI::DateTime::addToDate(time, 0, 0, 1), '%m%d%y'),
|
START => $recurring->{start} || WebGUI::DateTime::epochToHuman(WebGUI::DateTime::addToDate(time, 0, 0, 1), '%m%d%y'),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue