Fixed foreign key constraint fails on site for location
Merge remote-tracking branch 'origin/version4' into version4