Rating element: Creator rating not saved

schacke

Member
When i set the 'Rating mode' to 'Creator rating', the rating is not saved and it can't be edited afterwards.
 
OK, I think I've resolved this, in this commit:

https://github.com/Fabrik/fabrik/commit/21508457b85fd82facf6998d7f526a49330c4764

NOTE ... the way I've fixed it, the term "creator" isn't quite accurate. It's really "first person to edit and rate". It's a chicken and egg thing, you can't rate a form until after it's been saved, because we need the rowid of the main form, to store in the ratings table. I'm not sure why the code as-was allowed you to try and rate on a new form.

So the way it now works, you get a "rating will be enabled once the form has been saved" when creating a new form, and the first person to then edit and rate (in creator mode) will be deemed as the "creator" of the rating.

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top