Skip to content

Commit 0d0cf89

Browse files
committed
When adding the new idea’s vote, get poster id from data array
1 parent 9c3c118 commit 0d0cf89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

factory/ideas.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ public function submit($data)
742742

743743
// Initial vote
744744
$idea = $this->get_idea($idea_id);
745-
$this->vote($idea, $this->user->data['user_id'], 1);
745+
$this->vote($idea, $data['poster_id'], 1);
746746

747747
return $idea_id;
748748
}

0 commit comments

Comments
 (0)