added patch config for onsave event.