It seems the link to open the Modal dialog in Preview extension does not follow the logic in PHPMaker core template.
To reproduce the issue, please do the following steps:
- Open the demo project file using PHPMaker, and make sure "Preview" extension has been enabled,
- Click on "orderdetails" table, then enable "Modal dialog" option under "Table" setup -> "Add Page" and "Edit Page",
- Regenerate ALL the script files using PHPMaker,
- Run the generated web application via browser, go to "Orders" List page,
- Click on "+" (plus) button next to one of the records in the table to expand the "Order Details" preview area,
- Select an "Edit" link from the List Options of "Order Details" preview area, then the normal "Edit Page" will be shown up, instead of the Modal dialog.