From d4c6ff15a9e68ff319ef0b70955bd4652876751d Mon Sep 17 00:00:00 2001
From: Dave Hall <dave.hall@skwashd.com>
Date: Sat, 1 Sep 2012 09:31:36 +1000
Subject: [PATCH] Issue #1439134 by jamesharv, skwashd: Fix 'Notice: Undefined
 property: stdClass::' error

---
 plugins/context_reaction_block.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/context_reaction_block.js b/plugins/context_reaction_block.js
index e271a91..a3ec6a1 100644
--- a/plugins/context_reaction_block.js
+++ b/plugins/context_reaction_block.js
@@ -57,7 +57,7 @@ DrupalContextBlockForm = function(blockForm) {
       var blocks = [];
       $('tr', $(this)).each(function() {
         var bid = $(this).attr('id');
-        var weight = $(this).find('select').val();
+        var weight = $(this).find('select,input').first().val();
         blocks.push({'bid' : bid, 'weight' : weight});
       });
       Drupal.contextBlockForm.state[region] = blocks;
-- 
1.7.9.5

