Fixed marker edit bug

Getting project’s custom fields had ruined post globals
Removed unnecessary comments and obsolete code