Skip to content

Commit

Permalink
Issue #139: Clarify the collapse message regarding saving changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
herbdool authored Jul 12, 2024
1 parent 72648b6 commit fe1b08e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paragraphs.field_widget.inc
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ function paragraphs_field_widget_form_build(array &$form, array &$form_state, ar
backdrop_add_library('system', 'backdrop.dismiss');
$markup .= '<a href="#" class="dismiss" title="' . t('Dismiss') . '"><span class="element-invisible">' . t('Dismiss') . '</span></a>' . "\n";
}
$markup .= t('This content must be saved to record recent changes.');
$markup .= t('Click the main "Save" button to make content changes permanent.');
$markup .= '</div>';
$element['must_be_saved'] = array(
'#markup' => $markup,
Expand Down
2 changes: 1 addition & 1 deletion tests/paragraphs.test
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class ParagraphsFieldTestCase extends BackdropWebTestCase {
$this->backdropPost(NULL, $create_edit, t('Collapse'));

// Paragraph item should collapse after passing validation.
$this->assertRaw(t('This content must be saved to record recent changes.'), 'Field passed per-paragraph validation');
$this->assertRaw(t('Click the main "Save" button to make content changes permanent.'), 'Field passed per-paragraph validation');

$create_edit = array(
'title' => $title,
Expand Down

0 comments on commit fe1b08e

Please sign in to comment.