When i've created this change this solves the issue for me. Those days i've used cm11 and had the issue that changing the group of a contact in owncloud results the contact having the old and the new group on the phone.

I've tried to reproduce this now and it works without this patch, so simply drop it.