Rename parameter

This commit is contained in:
Stephen Abello
2026-01-12 15:08:23 +01:00
parent 5c75d0ce7c
commit 441519d71d
2 changed files with 6 additions and 6 deletions

View File

@@ -28,10 +28,10 @@ class FormsController extends Controller
{
try {
$oRequest = $this->getRequest();
$sDashletId = $oRequest->query->get('dashlet_code');
$sDashletClass = $oRequest->query->get('dashlet_class');
// Get the form block from the service (and the compiler)
$oFormBlock = FormBlockService::GetInstance()->GetFormBlockById($sDashletId, 'Dashlet');
$oFormBlock = FormBlockService::GetInstance()->GetFormBlockById($sDashletClass, 'Dashlet');
$oBuilder = $this->GetFormBuilder($oFormBlock, []);
$oForm = $oBuilder->getForm();
$oForm->handleRequest($oRequest);