Commit ef120324 authored by Stephane Bouvry's avatar Stephane Bouvry
Browse files

- Champs PCRU facultatif

parent 01303646
Loading
Loading
Loading
Loading
Loading
+19 −3
Changes for module/Oscar/src/Oscar/Form/ProjectGrantForm.php: 19 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
 * @date October 16, 2015 15:34
 * @copyright Certic (c) 2015
 */

namespace Oscar\Form;

use Oscar\Entity\Activity;
@@ -35,7 +36,8 @@ class ProjectGrantForm extends Form implements InputFilterProviderInterface, Use
    private $organizations = false;
    private $organizationRoles = null;

    public function setNumbers($numbers, $editable){
    public function setNumbers($numbers, $editable)
    {
        $this->numbers = $numbers;
        $this->editable = $editable;
    }
@@ -43,11 +45,13 @@ class ProjectGrantForm extends Form implements InputFilterProviderInterface, Use
    /**
     * @return ProjectGrantService
     */
    public function getProjectGrantService(){
    public function getProjectGrantService()
    {
        return $this->getServiceContainer()->get(ProjectGrantService::class);
    }

    public function addOrganizationsLeader($organizations, $organizationRoles){
    public function addOrganizationsLeader($organizations, $organizationRoles)
    {
        $this->organizations = $organizations;
        $this->organizationRoles = $organizationRoles;
    }
@@ -436,6 +440,18 @@ class ProjectGrantForm extends Form implements InputFilterProviderInterface, Use
            'disciplines' => [
                'required' => false,
            ],

            'pcruPoleCompetitivite' => [
                'required' => false
            ],

            'pcruValidPoleCompetitivite' => [
                'required' => false
            ],

            'pcruSourceFinancement' => [
                'required' => false
            ],
        ];
    }
}