Explorar o código

Merge pull request #2063 from uwej711/use_translation_domain_2_2

use admin's translation domain for delete checkbox
Thomas %!s(int64=11) %!d(string=hai) anos
pai
achega
63f07b94b4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Form/Type/AdminType.php

+ 1 - 1
Form/Type/AdminType.php

@@ -31,7 +31,7 @@ class AdminType extends AbstractType
         $admin = $this->getAdmin($options);
 
         if ($options['delete'] && $admin->isGranted('DELETE')) {
-            $builder->add('_delete', 'checkbox', array('required' => false, 'mapped' => false));
+            $builder->add('_delete', 'checkbox', array('required' => false, 'mapped' => false, 'translation_domain' => $admin->getTranslationDomain()));
         }
 
         if (!$admin->hasSubject()) {