Procházet zdrojové kódy

use admin's translation domain for delete checkbox

otherwise it's in messages ...
Uwe Jäger před 11 roky
rodič
revize
7d72b7b8c6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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()) {