Skip to content

Commit

Permalink
Merge pull request #1219 from griidc/hotfix/6.28.1
Browse files Browse the repository at this point in the history
Fixed incorrect use of class name
  • Loading branch information
praneethpr authored Jul 13, 2022
2 parents b9ab4f8 + 89a9cc5 commit 48ade14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Form/PersonFundingOrganizationType.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use App\Entity\FundingOrganization;
use App\Entity\FundingOrganizationRole;
use App\Entity\Person;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\FormInterface;
Expand Down Expand Up @@ -35,7 +36,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder
->add('person', EntityType::class, array(
'label' => 'Person:',
'class' => 'App:Person',
'class' => Person::class,
'choice_label' => function ($value, $key, $index) {
return $value->getLastName() . ', ' . $value->getFirstName() . ', ' . $value->getEmailAddress();
},
Expand Down

0 comments on commit 48ade14

Please sign in to comment.