Adding a patient to a waitlist incorrect list id is populated in waitlist table

Preconditions

Set property
DEMOGRAPHIC_WAITING_LIST=true

Steps to Reproduce

1. search patient
2. go to master record
3. select wait list from dropdown *note listname or inspect element and get waitlistid
4. update record

access mysql select * from waitingList and listID is incorrect.

Expected Result

Expected result would be that the id of the wait list selected would populate waitingList.listID

Observed Result

The maxPosition is populating instead

Additional Comments

problem is with WLWaitingListUtil.add2WaitingList the ListId is being populated with the maxPosition (list.setListId(maxPosition) and should just be waitingListID.

Looks like it has been an issue for about 4years and 10months

Assignee

John Wilson

Reporter

John Wilson

Labels

None

OSCAR Build Date

2017/08/03

OSCAR Build Tag

oscar-master #34 oscar-stable #669

Client Browser

Firefox

Client OS

Windows 7

Are you or your organization planning on submitting a fix for this bug in the next 30 days?

Yes

Validated by Reporter

No

SourceForge Link

None

SourceForge Reporter

None

SourceForge Assigned To

None

SourceForge Date Created

None

SourceForge ID

None

Fix versions

Affects versions

Priority

5 (Default)
Configure