MyBB Community Forums
[F] Edit event - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.1 (https://community.mybb.com/forum-93.html)
+------ Thread: [F] Edit event (/thread-36370.html)



[F] Edit event - Michael S. - 2008-08-21

If you change the status of an existing event from private to public (or the other way around) this change isn't applied to this event.


RE: Edit event - Dennis Tsang - 2008-08-21

In template "calendar_editevent", find:
				<input type="checkbox" class="checkbox" name=thread value="1"{$privatecheck} /><span class="smalltext">{$lang->private_option}</span><br />
Replace with:
				<input type="checkbox" class="checkbox" name="private" value="1"{$privatecheck} /><span class="smalltext">{$lang->private_option}</span><br />

Does that work? Smile


RE: Edit event - Zachary - 2008-08-21

Heh, looks like someone copied over code :p


RE: Edit event - Michael S. - 2008-08-21

It's working if you turn a public event into a private event. It's not working if you want to turn a private event into a public one.


RE: Edit event - Dennis Tsang - 2008-08-22

Are you sure it's not your browser caching the checkmark?


RE: Edit event - Michael S. - 2008-08-22

Yes, I am. I even disabled caching and another user experienced the same after changing the template.


RE: Edit event - Michael S. - 2008-08-22

Fix: Open the file inc/datahandlers/event.php and search for:
if(isset($event['private']))
{
	$this->event_update_data['private'] = intval($event['private']);
}
Replace with:
if(isset($event['private']))
{
	$this->event_update_data['private'] = 1;
}
else
{
	$this->event_update_data['private'] = 0;
}



[F] Edit event - Sergio Montoya - 2008-08-22

Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.


RE: [F] Edit event - Sergio Montoya - 2008-08-22

Actually that is not the correct fix.

It works the way DennisTT said, but it has to be updated on all the themes, if you applied it to the Default Templates and you are using another one the problem will persist. Try saving it to Global Templates.

I tested and works without altering the datahandler, just modify the template from:
                <input type="checkbox" class="checkbox" name=thread value="1"{$privatecheck} /><span class="smalltext">{$lang->private_option}</span><br />

To:
                <input type="checkbox" class="checkbox" name="private" value={$privatecheck} /><span class="smalltext">{$lang->private_option}</span><br />

And double-check it's actually being saved (return to the template and see if the change was indeed saved).