Attempt fixing bug in previewForm.php

Moved $listing_id value retrieval block up.

ve
previewForm: Do not execute update when id is an empty string
Temporarily switch slave db to master
Switch slave db back to slave3
Fix bug with common lead api

- 'Source id' was sent instead of 'listing external id'.
- Fixed the bug by sending 'listing external id' to the common lead api.
- Reported by Teo.
Production to use new master and slave db instance.
Switch db back to the original master and slave
Sanitize and remove invalid file names from object list before saving
Switch db to use new master and slave instance
New slave db instance
Attempt fixing bug in previewForm.php

Moved $listing_id value retrieval block up.

ve
previewForm: Do not execute update when id is an empty string
Temporarily switch slave db to master
Switch slave db back to slave3
Fix bug with common lead api

- 'Source id' was sent instead of 'listing external id'.
- Fixed the bug by sending 'listing external id' to the common lead api.
- Reported by Teo.
Production to use new master and slave db instance.
Switch db back to the original master and slave
Sanitize and remove invalid file names from object list before saving
Switch db to use new master and slave instance
New layout