Closed (fixed)
Project:
Fivestar
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 May 2020 at 20:49 UTC
Updated:
29 May 2020 at 06:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mrweiner commentedComment #3
mrweiner commentedComment #4
mrweiner commentedhmm, this 0 value doesn't seem to be respected when the widget is rendered.
Comment #5
mrweiner commentedScratch that -- it actually renders fine. Just needed a cache clear.
Comment #6
init90Hi, I added it but don't remember details. I think it really was needed at that moment...
I just tested your patch and haven't got any errors. Tomorrow I'll test it more detailed to ensure that everything is ok and try to find a purpose for adding that check.
It would be cool to remove that hack, thanks.
Comment #7
init90Before the code was added we got next error "This value should be of the correct primitive type." when saving fivestar field configuration. This check fixed the error.
But later we added a better check in
\Drupal\fivestar\Plugin\Field\FieldType\FivestarItem::isEmptymethod which fixed the problem in more propper way.So the code certainly can be removed, thanks @mrweiner
Comment #8
mrweiner commentedThat makes sense. Great, no problem!
Comment #10
tr commentedCommitted. Thanks.