Completed
Pull Request — 8.x-1.x (#138)
by
unknown
24:27 queued 09:28
created
src/Plugin/EntityBrowser/SelectionDisplay/NewDisplay.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
               '#type' => 'submit',
59 59
               '#value' => $this->t('Remove'),
60 60
               '#submit' => [[get_class($this), 'removeItemSubmit']],
61
-              '#name' => 'remove_' . $id,
61
+              '#name' => 'remove_'.$id,
62 62
               '#attributes' => ['data-entity-id' => $id]
63 63
             ],
64 64
           ];
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -122,8 +122,7 @@
 block discarded – undo
122 122
     // information to return correct part of the form.
123 123
     if (!empty($trigger['#ajax']['event']) && $trigger['#ajax']['event'] == 'entity_browser_value_updated') {
124 124
       $parents = array_slice($trigger['#array_parents'], 0, -2);
125
-    }
126
-    elseif ($trigger['#type'] == 'submit' && strpos($trigger['#name'], '_remove_')) {
125
+    } elseif ($trigger['#type'] == 'submit' && strpos($trigger['#name'], '_remove_')) {
127 126
       $parents = array_slice($trigger['#array_parents'], 0, -4);
128 127
     }
129 128
 
Please login to merge, or discard this patch.