Skip to content

Commit

Permalink
Fix from / to
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorcow committed Jun 18, 2020
1 parent 35ff660 commit 81eff09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Forms/CopyLocaleAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ public function getGroup($gridField, $record, $columnName)
*/
private function validateAction($actionName, $fromLocale, $toLocale)
{
if ($actionName === 'fluentcopyto' && $this->otherLocale === $fromLocale) {
if ($actionName === 'fluentcopyto' && $this->otherLocale === $toLocale) {
return true;
}

if ($actionName === 'fluentcopyfrom' && $this->otherLocale === $toLocale) {
if ($actionName === 'fluentcopyfrom' && $this->otherLocale === $fromLocale) {
return true;
}

Expand Down

0 comments on commit 81eff09

Please sign in to comment.