ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: Jorin on March 20, 2015, 05:00:21 am

Title: [1.0.2] Edit a poll answer
Post by: Jorin on March 20, 2015, 05:00:21 am
I started a poll yesterday and today I wanted to edit an answer of the poll. But my edit is not saved.
Title: Re: [1.0.2] Edit a poll answer
Post by: emanuele on March 20, 2015, 05:31:21 am
Ouch!!
My fault as usual... :-[

In Poll.controller.php, just before (or after, it doesn't change much):
Code: [Select]
		if (!empty($add_options))
insertPollOptions($add_options);

add:
Code: [Select]
		if (!empty($update_options))
modifyPollOption($update_options);

I'll quickly add it to 1.0.3.

Thanks Jorin!!

ETA: here it is the fix https://github.com/elkarte/Elkarte/pull/1993