Check for pk rather when updating EAV in table, solves #776
Merge pull request #795 from church29/EAV_Update_JS

Check for pk rather when updating EAV in table, solves #776