Skip to content

Commit

Permalink
Fix Web2Print Doc Type default values regression (#14866)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingjia90 authored Apr 5, 2023
1 parent 32c58b1 commit 2803d04
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,13 @@ public function addAction(Request $request): JsonResponse
if ($docType) {
$createValues['template'] = $docType->getTemplate();
$createValues['controller'] = $docType->getController();
}

$config = $this->getParameter('pimcore_web_to_print');
if ($request->get('type') === 'printpage') {
$createValues['controller'] = $config['default_controller_print_page'];
} elseif ($request->get('type') === 'printcontainer') {
$createValues['controller'] = $config['default_controller_print_container'];
} else {
$config = $this->getParameter('pimcore_web_to_print');
if ($request->get('type') === 'printpage') {
$createValues['controller'] = $config['default_controller_print_page'];
} elseif ($request->get('type') === 'printcontainer') {
$createValues['controller'] = $config['default_controller_print_container'];
}
}

if ($request->get('inheritanceSource')) {
Expand Down

0 comments on commit 2803d04

Please sign in to comment.