Skip to content

Commit

Permalink
Issue backdrop-contrib#10. Replace #dependency with #states
Browse files Browse the repository at this point in the history
  • Loading branch information
argiepiano committed Mar 11, 2023
1 parent 92df871 commit 7f862b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/views_data_export_plugin_display_export.inc
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,10 @@ class views_data_export_plugin_display_export extends views_plugin_display_feed
'#type' => 'textfield',
'#description' => t('Return path after the batched operation, leave empty for default. This path will only be used if the export URL is visited directly, and not by following a link when attached to another view display.'),
'#default_value' => $this->get_option('return_path'),
'#dependency' => array(
'radio:use_batch' => array('batch')
'#states' => array(
'visible' => array(
':input[name="use_batch"]' => array('value' => 'batch'),
),
),
);
if (!$this->is_compatible()) {
Expand Down

0 comments on commit 7f862b9

Please sign in to comment.