FriendsOfFlarum / drafts

Enables creation of discussion drafts
MIT License
16 stars 8 forks source link

Preserve poll options set via FoF Polls #22

Open pflstr opened 4 years ago

pflstr commented 4 years ago

Similar to https://github.com/FriendsOfFlarum/drafts/issues/1:

If a discussion with a poll is saved as a draft the poll part is not saved.

askvortsov1 commented 4 years ago

For this to work:

askvortsov1 commented 4 years ago

Alternatively, title and content could also be moved into attributes, hence providing a unified, uniform system for saving and retreiving data. THis would probably be the most extensible option.

dsevillamartin commented 4 years ago

Don't do anything for now. I think it technically works, but I need to fix some things locally. Don't worry about it, leave it to me.

askvortsov1 commented 4 years ago

It doesn't work, I verified it. Poll is stored as an attribute (poll name, relationship to options, etc), not as a relationship.

askvortsov1 commented 4 years ago

Not doing anything now, but this might be worth straightening out before y'all tag the release

dsevillamartin commented 4 years ago

I meant that some of the code for it is there, but not handled correctly.