Skip to content

Commit

Permalink
FIX Make toast message "Records reordered." localisable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Oude Rengerink authored and GuySartorelli committed Dec 21, 2023
1 parent 377dc1e commit 5db84cf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GridFieldOrderableRows.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,10 @@ public function handleReorder($grid, $request)
$this->httpError(400);
}

Controller::curr()->getResponse()->addHeader('X-Status', rawurlencode('Records reordered.'));
Controller::curr()->getResponse()->addHeader(
'X-Status',
rawurlencode(_t(__CLASS__ . '.REORDERED', 'Records reordered.'))
);
return $grid->FieldHolder();
}

Expand Down

0 comments on commit 5db84cf

Please sign in to comment.