vtfuture / BForms

Bootstrap Forms for ASP.NET MVC
MIT License
62 stars 33 forks source link

SetContent fire twice if using InitialEditable() #229

Closed ewelinaprus closed 9 years ago

ewelinaprus commented 9 years ago

I need to load editable panel but my form is saved two times if I use .InitialEditable() method. Everything is OK if I start in read-only mode. The same problem I found in your UserProfile form.

cristipufu commented 9 years ago

Hello @ewelinaprus,

I can't reproduce this. How did u figure out it's saved 2 times ?

ewelinaprus commented 9 years ago

I set breakpoint with Visual Studio 2012 on the beggining SetContent() in UserProfileController and then I load Examples/UserProfile page. On the bottom of page in last panel I changed e-mail value and press Save button finally. The breakpoint fired two times. On my own project with PetaPoco ORM my form saved two times and I get two records in my DB. If I remove InitialEditable() from my form everything works fine, but I need to load form in editable mode.