Call to undefined method getCurrentMasterTable()
Hello everyone
I have this error when trying to add data to a table
Call to undefined method PHPMaker2024\Art\AtencionAdd::getCurrentMasterTable()
Hello everyone
I have this error when trying to add data to a table
Call to undefined method PHPMaker2024\Art\AtencionAdd::getCurrentMasterTable()
Make sure you have alread re-generated ALL the script files, and try again.
Check clear project folder first
I cleared the browser's cache and the error persists
table does not belong to master/detail
version 2024.9
I just realized that the entire project presents the same error in all the tables, it does not allow adding or editing
// Handle UseAjaxActions with return page
if ($this->IsModal && $this->UseAjaxActions && !$this->getCurrentMasterTable()) {
$this->IsModal = false;
if (GetPageName($returnUrl) != "AtencionList") {
Container("app.flash")->addMessage("Return-Url", $returnUrl); // Save return URL
$returnUrl = "SecurityVulnerabilityList"; // Return list page content
}
}
The error is only occurring with the modal
Try to update to the latest template, click Tools -> Update Template, re-generate ALL the script files, and try again.
thank you
Updating the template fixed the error