[3.8] Fix #1367 : Discard readonly fields in editing templates