Field Group Conditional State does not work after upgrade After recent upgrade of fieldgroup module, the conditional state visibility for field group does not work now.

Please find the previous code that used to work:

function ji_custom_field_group_build_pre_render_alter(&amp;$element) {

  //BioChemistry
  if(isset($element['group_tr_biochemistry'])){
    $element['group_tr_biochemistry']['#states'] = array(
      'visible' =&gt; array(
        ':input[name="field_tr_test_ref[und]"]' =&gt; array('value' =&gt; 12),
      ),
    );
  }


  //CBC
  if(isset($element['group_tr_cbc'])){
    $element['group_tr_cbc']['#states'] = array(
      'visible' =&gt; array(
        ':input[name="field_tr_test_ref[und]"]' =&gt; array('value' =&gt; 15),
      ),
    );
  }
}


However this does not work after the upgrade.  I get an PHP notice instead:


  Notice: Undefined index: #id in drupal_process_states() (line 4651 of /srv/www/www.example.com/public_html/includes/common.inc).


Do let me know the workaround possible. Thanks.
Searched for some time. Tried different options. Finally reverted to older version 1.3 and it worked just fine :)

This was the bug which has not been addressed in the dev version as of now: https://www.drupal.org/node/2283245

Thanks.