fix posting threads
This commit is contained in:
parent
ad025e8309
commit
0f1011e315
1 changed files with 2 additions and 2 deletions
|
|
@ -570,14 +570,14 @@ sub prepareView {
|
|||
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
sub processPropertiesFromFormPost {
|
||||
sub postProcess {
|
||||
my $self = shift;
|
||||
$self->SUPER::processPropertiesFromFormPost;
|
||||
if ($self->getParent->canEdit) {
|
||||
my $karmaScale = $self->session->form->process("karmaScale","integer") || $self->getParent->get("defaultKarmaScale");
|
||||
my $karmaRank = $self->get("karma")/$karmaScale;
|
||||
$self->update({karmaScale=>$karmaScale, karmaRank=>$karmaRank});
|
||||
}
|
||||
$self->SUPER::postProcess;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue