Laravel 5.5 bug

Create issue
Issue #17 resolved
Malcolm Paul created an issue

There's a bug in the updated version of OctoberCMS when voting. It occurs online 447 in Xeor\Comments\Components\Comments. The pluck command now returns a collection instead of the raw value.

You can use:

if ($voteId->count()) {
      Vote::where('id', $voteId)
             ->update(['value' => $value]);
}

instead of

if ($voteId) {
    Vote::where('id', $voteId)
         ->update(['value' => $value]);
}

Comments (3)

  1. Log in to comment