Commits

Tim Gerrits  committed 42cbd6e

Service-Model-Adjustments

  • Participants
  • Parent commits 2358fa1

Comments (0)

Files changed (1)

File views/form.phtml

 $allowed = sly_Util_User::getCurrentUser()->getAllowedClangs();
 
 if ($canSet) {
-	$source = new sly_Form_Input_Text('source', t('translator_key'), $unit['source']);
+	$source = new sly_Form_Input_Text('source', t('translator_key'), $unit->getIdent());
 	$source->setHelpText(t('translator_this_is_key'));
 	$form->setFocus('source');
 	$form->add($source);
 }
 else {
-	$source = new sly_Form_Text(t('translator_key'), $unit['source']);
+	$source = new sly_Form_Text(t('translator_key'), $unit->getIdent());
 	$source->setHelpText(t('translator_this_is_key'));
 	$form->add($source);
 }