fixes #3957
Merge pull request #4164 from dotCMS/issue-3957-environment-not-auto-set-in-cat-manager

fixes #3957