When editing a widget, all the previously made selections are empty

Ok, I know this has nothing to do with any wpmu-dev products but I ‘m trying to build a widget and I’m just doing something wrong. I hope someone else will be able to spot it ’cause I can’t see it.

So here’s what ‘s happening: The widget I’m building is rendering a title, a body and some buttons bellow it. The user can change the title, the body, the label and the link of each button.

When the user enters some options and saves the widget, everything is rendered perfectly fine. BUT when he tries to edit the widget again to make some changes, all the options he previously entered are gone.

To make my point clear, I’ve attached 3 screenshots.

The first one is when editing the widget to enter some options.

The second is the widget after we save it with the options we entered on the first screenshot.

The third is when re-editing the widget.

Notice that on the 3d screenshot the previous options for the buttons are empty.

If anyone feels like helping (please do… :stuck_out_tongue: ) the file responsible for all this is here: https://gist.github.com/3003040 the lines in question are 77-252