fixes #2797 - Submit the final code, not the diff in the config template editor
(cherry picked from commit 99b2e61bed1474451fdef1852d484f009dc4cb2f)