ID: 3611142 Paste doesn't work with newline in "Reason" or "Notes" field
Fixed by escape special characters before rendering javascript
Added indexes on scheduledate table
ID:3471480 External Prescriber - debug scheduler

lastRun should only be set when actual synchronization occurs
or else lastRun+synchronizeInterval will always be in the future

Change-Id: If097fb8f9e610a77bf57cea159c6d9f6fc9484bb
Merge "ID: 3611142 Paste doesn't work with newline in "Reason" or "Notes" field Fixed by escape special characters before rendering javascript" into RELEASE_12_1
Added indexes on scheduledate table - update script

Change-Id: Iaa752c25efc7d0df17cda6d5bef0ca3e10f6a0f7
Merge "ID:3471480 External Prescriber - debug scheduler" into RELEASE_12_1
Merge "Added indexes on scheduledate table" into RELEASE_12_1
Merge "Added indexes on scheduledate table - update script" into RELEASE_12_1