I have a system where based on a property of an event (the value of ‘approved’), the colour of an event is different.
If approved is 0, the event is purple, but if approved is 1, the event is blue.
This loads correctly, but I have a checkbox in my ‘edit event’ box that stores the value of approved.
I have it that checked =3 and unchecked = 1, but if the event was originally 0 and the box is unchecked, it sets approved back to 0.
This all works in terms of setting the value in the database, but for some reason, the event colour goes to blue even when I set approved to 0.
Which code you are using to color events based on checkbox state ?
Each time, after lightbox closing event will be repainted, and if you are using color property or one of templates - new value will be applied. So if template|code is correct - there is no way, normally, to have wrong coloring.