prevent changes to constant

https://community.openproject.org/work_packages/16882