Updating ticket entity data if edited inside ticket

Fixes #294
Fixes #307