Changing how we get the field id

This commit is a manual pick of 68025a4177ba5d53e161afe76fef88678e4a81a9.

> We now use the key of the array returned by $section->fetchFields();