Skip to content
Snippets Groups Projects
Commit a4f2cff0 authored by Tomotaka Hosomi's avatar Tomotaka Hosomi Committed by Yas Naoi
Browse files

Issue #3353170 by hosomitm, Ryo Yamashita, yas: Fix the OpenStack Port edit...

Issue #3353170 by hosomitm, Ryo Yamashita, yas: Fix the OpenStack Port edit form in SPA that cannot be saved due to a validation error
parent 1c7ee7cb
Branches
Tags
1 merge request!1711Issue #3353170: Fix the OpenStack Port edit form in SPA that cannot be saved due to a validation error
......@@ -1077,7 +1077,7 @@ class ApiController extends ControllerBase implements ApiControllerInterface {
case 'edit_openstack_port':
/** @var \Drupal\openstack\Entity\OpenStackPortInterface $entity */
$entity->setName($request->get('name', ''));
$entity->setAdminStateUp($request->get('admin_state_up', ''));
$entity->setAdminStateUp($request->get('admin_state_up', '') === 'true');
$entity->setBindingVifType($request->get('binding_vnic_type', ''));
$entity->setPortSecurityEnabled($request->get('port_security_enabled', '') === 'true');
$allowed_address_pairs = json_decode($request->get('allowed_address_pairs', '[]'), TRUE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment