Skip to content

Commit c6f9470

Browse files
authored
Refactor instanceId retrieval for dynamic navigation
1 parent f3dce90 commit c6f9470

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Form/FormFlow.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,8 @@ protected function determineInstanceId() {
625625
$instanceId = null;
626626

627627
if ($this->allowDynamicStepNavigation || $this->allowRedirectAfterSubmit) {
628-
$instanceId = $request->get($this->getDynamicStepNavigationInstanceParameter());
628+
$requestData = in_array($request->getMethod(), ['POST', 'PUT'], true) ? $request->request : $request->query;
629+
$instanceId = $requestData->get($this->getDynamicStepNavigationInstanceParameter());
629630
}
630631

631632
if ($instanceId === null) {

0 commit comments

Comments
 (0)