Continued to check the cause of the inconsistency of data when the ticket is edited, as per checking the option is selected but the value is not set thus it is not applied in the dropdown. Modified the javascript function to fix the problem, after many modification changes, the data is now displaying in the dropdown, and when tested it is showing the correct data based on the data in the database. Applied the same changes to the activity javascript as the same bugs are encountered, as per testing, again, it is now OK.