Commit 61c2e2b6 authored by Masami  Suzuki's avatar Masami Suzuki Committed by Yas Naoi
Browse files

Issue #3271376 by Masami, yas: Fix an option for the "Termination date" when...

Issue #3271376 by Masami, yas: Fix an option for the "Termination date" when editing an EC2 instance
parent e0bd78e4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -624,7 +624,7 @@ class InstanceEditForm extends AwsCloudContentForm {

    $termination_timestamp = $form_state->getValue('termination_timestamp')[0]['value'] ?? '';
    $termination_protection = $form_state->getValue('termination_protection');
    if ($termination_timestamp !== NULL && $termination_protection === 1) {
    if (!empty($termination_timestamp) && $termination_protection === 1) {
      $form_state->setErrorByName(
        'termination_timestamp',
        $this->t('"@name1" should be left blank if "@name2" is selected. Please leave "@name1" blank or unselect "@name2".', [