Patched Drupal module references_dialog