#24196tcemain: wrong variables used due copy&paste
Description
There are 2 wrong variables used in checkValue_group_select_file for writing the history.
Solution: use the actual variables.
(issue imported from #M16558)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.