SA-CONTRIB-2019-028-6.x-3.x.patch 631 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
diff --git a/plugins/context_reaction_block.js b/plugins/context_reaction_block.js
index 67e2031..78508bd 100644
--- a/plugins/context_reaction_block.js
+++ b/plugins/context_reaction_block.js
@@ -64,7 +64,7 @@ DrupalContextBlockForm = function(blockForm) {
 
     // Hide enabled blocks from selector that are used
     $('table.context-blockform-region tr').each(function() {
-      var bid = $(this).attr('id');
+      var bid = Drupal.checkPlain($(this).attr('id'));
       $('div.context-blockform-selector input[value='+bid+']').parents('div.form-item').eq(0).hide();
     });
     // Show blocks in selector that are unused