Prepopulate configurator form
This commit is contained in:
1 parent
340261220c
commit
6160703361
5 files changed
+40
-8
No files matched your search
@@ -51,9 +51,17 @@ class FormController extends ActionController
|
||||
$this->view->assign('inquiry', $inquiry);
|
||||
}
|
||||
|
||||
public function configuratorAction()
|
||||
/**
|
||||
* @param int $travelType
|
||||
* @param int $locationType
|
||||
*/
|
||||
public function configuratorAction($travelType = 0, $locationType = 0)
|
||||
{
|
||||
$inquiry = $this->getInquiryFromContext();
|
||||
if ($travelType !== 0) {
|
||||
$inquiry = Inquiry::fromArguments($travelType, $locationType);
|
||||
} else {
|
||||
$inquiry = $this->getInquiryFromContext();
|
||||
}
|
||||
$this->view->assign('inquiry', $inquiry);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user