GNOME Bugzilla – Bug 734029
Saving a new resource twice creates a duplicate row
Last modified: 2014-08-05 11:19:51 UTC
Created attachment 282128 [details] [review] patch If you create a new resource, call save(), change some properties, and then save() again, it will insert 2 rows. It should UDPATE on the second save. The attached patch should fix the issue, though I'm not sure if it's necessarily the right fix.
That looks correct indeed, thanks!
And verified with: commit 143984b5a6529805272e937b965a9d9631835eb0 Author: Bastien Nocera <hadess@hadess.net> Date: Tue Aug 5 13:18:08 2014 +0200 tests: Add test for previous commit Add test case for the double-INSERT, instead of INSERT followed by UPDATE, mentioned in https://bugzilla.gnome.org/show_bug.cgi?id=734029