I just found an issue in v2018: The Modal Dialog that contains View Page, will display the List Page including header and footer, when access denied for the View Page permission (for example, when the session has expired that triggered from another tab of the same browser).
For simplicity, let's say we use "Categories List" page of demo project.
To reproduce this issue, please follow all the following steps carefully:
Open the demo project using PHPMaker 2018, and make sure to click or select on "categories" table from "Database" pane,
Click on "Table" tab at the right pane, go to "View Page" section, then enable "Modal dialog",
Generate all the script files as usual, everything should be working fine so far,
Open the generated web application from your favorite browser,
Make sure you have already logged in using username "admin" and password "master",
Click on "OTHER TABLES" -> "categories", then you should see now the List page of "categories",
Click on the dropdown button that belongs to the first record in that List page, then click on "View" menu, then the modal dialog will display the View page properly,
Close that modal dialog, by clicking on "Close" button in that modal dialog window,
Right click on "Home" menu, then click on "Open link in new tab", then you should see the Home page will be displayed in that new tab of the same browser,
Go to that new tab that opens the Home page, click on the user icon at the top right corner, then click on "Logout",
Go back to the previous tab which still displaying the List page of "categories", click again on the dropdown button that belongs to the first record in that List page, and click on "View" menu, then the modal dialog will display the List page.
So the issue is in the step #11 above. The modal dialog will display the List page, since the user session has expired. This looks weird to display the List page including the header and footer section in that modal dialog.
In other words, the modal dialog should only display the message "You do not have permission to access /demo2018/categoriesview.php" instead of displaying the List page.
Thoughts?