Skip to content

Commit

Permalink
Update DeeplButtons.php
Browse files Browse the repository at this point in the history
add support for input type inputUnit
  • Loading branch information
gebi84 authored Nov 3, 2022
1 parent 054523e commit 1764bad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Controller/Backend/DeeplButtons.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ public function registerDeepl(DataContainer $dc)
public function translateButton(DataContainer $dc)
{
$field = $dc->field;

// inputUnit
if ($GLOBALS['TL_DCA'][$dc->table]['fields'][$field]['inputType'] === 'inputUnit') {
$field.='[value]';
}

return $this->getTranslateButton($field);
}

Expand Down

0 comments on commit 1764bad

Please sign in to comment.