When linking the Program to a portfolio, the associated project link is lost
Steps to Reproduce:
1. Create a project
2. Create a demand
3. Create a program
4. Link the project and the demand to the program through related lists
5. Create a portfolio
6. Link the program to the portfolio
The demand and the project are not linked to the program anymore.
Release or Environment
The project portfolio should have the same as the program
The project and demand record should have the same portfolio as the portfolio that you are setting in the Program. If the project associated with a program doesn't contain any portfolio or a different portfolio, the Program association for the project/Demand will be removed. This is the expected behavior and the product was designed this way.
Please set the value for the portfolio to the project and then set the same portfolio to the program record as well.