Skip to content

Commit

Permalink
Update 'screen_id' to 'id'
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraeteisha committed Nov 7, 2024
1 parent 7bc3f3a commit e269054
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ProcessMaker/ProcessTranslations/ScreenTranslation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ class ScreenTranslation extends TranslationManager
*/
public function applyTranslations($screen, $defaultLanguage = '')
{
$screenId = $screen['id'];
$config = $screen['config'];
if (!hasPackage('package-translations')) {
return $config;
}

$language = $this->getTargetLanguage($defaultLanguage);

return $this->searchTranslations($screen['screen_id'], $config, $language);
return $this->searchTranslations($screenId, $config, $language);
}

/**
Expand Down

0 comments on commit e269054

Please sign in to comment.