- fix [ 1488598 ] edit workflow broken
- fix [ 1488561 ] webggui
- fix [ 1488557 ] new styles are missing ^/; in link
- fix [ 1488530 ] search has no toolbar
- fix [ 1488663 ] Add new subscription broken
- fix [ 1485461 ] Internationalized the Date in Mail headers
- fix [ 1488518 ] Snippet has no cacheTimeout field
- fix [ 1486788 ] karma isn't working on forums
This commit is contained in:
parent
6c2d4c8914
commit
cdb018a0bf
8 changed files with 105 additions and 5 deletions
|
|
@ -145,9 +145,9 @@ sub commit {
|
|||
$self->getThread->unarchive if ($self->getThread->get("status") eq "archived");
|
||||
$self->notifySubscribers;
|
||||
if ($self->isNew) {
|
||||
if ($self->session->setting->get("enableKarma") && $self->getThread->getParent->get("karmaPerPost")) {
|
||||
if ($self->session->setting->get("useKarma") && $self->getThread->getParent->get("karmaPerPost")) {
|
||||
my $u = WebGUI::User->new($self->session, $self->get("ownerUserId"));
|
||||
$u->addKarma($self->getThread->getParent->get("karmaPerPost"), $self->getId, "Collaboration post");
|
||||
$u->karma($self->getThread->getParent->get("karmaPerPost"), $self->getId, "Collaboration post");
|
||||
}
|
||||
$self->getThread->incrementReplies($self->get("dateUpdated"),$self->getId) if ($self->isReply);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -107,6 +107,14 @@ sub getEditForm {
|
|||
my $self = shift;
|
||||
my $tabform = $self->SUPER::getEditForm();
|
||||
my $i18n = WebGUI::International->new($self->session,"Asset_Snippet");
|
||||
$tabform->getTab("display")->interval(
|
||||
name => "cacheTimeout",
|
||||
defaultValue => 3600,
|
||||
uiLevel => 8,
|
||||
label => $i18n->get("cache timeout"),
|
||||
hoverHelp => $i18n->get("cache timeout help"),
|
||||
value=> $self->getValue("cacheTimeout")
|
||||
);
|
||||
$tabform->getTab("properties")->codearea(
|
||||
-name=>"snippet",
|
||||
-label=>$i18n->get('assetName'),
|
||||
|
|
|
|||
|
|
@ -460,7 +460,8 @@ The period you want the name for.
|
|||
=cut
|
||||
|
||||
sub recurringPeriodValues {
|
||||
my ($session) = @_;
|
||||
my $class = shift;
|
||||
my $session = shift;
|
||||
my ($i18n, %periods);
|
||||
$i18n = WebGUI::International->new($session, 'Commerce');
|
||||
tie %periods, "Tie::IxHash";
|
||||
|
|
|
|||
|
|
@ -309,7 +309,6 @@ sub www_editSubscription {
|
|||
unless ($session->form->process("sid") eq 'new') {
|
||||
$properties = WebGUI::Subscription->new($session,$session->form->process("sid"))->get;
|
||||
}
|
||||
|
||||
$subscriptionId = $session->form->process("sid") || 'new';
|
||||
|
||||
$f = WebGUI::HTMLForm->new($session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue