Skip to content
Snippets Groups Projects

Issue #3353170: Fix the OpenStack Port edit form in SPA that cannot be saved due to a validation error

Merged Issue #3353170: Fix the OpenStack Port edit form in SPA that cannot be saved due to a validation error
Merged Tomotaka Hosomi requested to merge issue/cloud-3353170:3353170-fix-the-openstack into 6.x
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -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);
Loading