- fix: Column Layout seems a little messed up
- Fixed the EMS default templates to expose all functionality. - Fixed a problem in the EMS where it wouldn't let you add any events. - fix: FieldName incorrect after adding profile field - fix: preload.perl for other roots than /data/WebGUI - Fixed a bug where polls weren't distributing karma.
This commit is contained in:
parent
d619dd1fdb
commit
2e1de9d214
6 changed files with 18 additions and 13 deletions
|
|
@ -414,8 +414,7 @@ sub www_vote {
|
|||
if ($self->session->form->process("answer") ne "" && $self->session->user->isInGroup($self->get("voteGroup")) && !($self->_hasVoted())) {
|
||||
$self->setVote($self->session->form->process("answer"),$self->session->user->userId,$self->session->env->get("REMOTE_ADDR"));
|
||||
if ($self->session->setting->get("useKarma")) {
|
||||
$u = WebGUI::User->new($self->session->user->userId);
|
||||
$u->karma($self->get("karmaPerVote"),"Poll (".$self->getId.")","Voted on this poll.");
|
||||
$self->session->user->karma($self->get("karmaPerVote"),"Poll (".$self->getId.")","Voted on this poll.");
|
||||
}
|
||||
$self->getContainer->purgeCache;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue