Fix #2797: Submit the final code, not the diff in the config template editor