fix editable attribute of joined fields (fix #7739)

Based on pull request 576 by minorua
https://github.com/qgis/Quantum-GIS/pull/576