Project API and globalActivities flag (#3564)
* expose globalActivities setting in project entity * fix globalActivities being true by default if created via API
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
namespace App\Form\API;
|
||||
|
||||
use App\Form\ProjectEditForm;
|
||||
use App\Form\Type\APITrueFalseType;
|
||||
use Symfony\Component\Form\FormBuilderInterface;
|
||||
use Symfony\Component\OptionsResolver\OptionsResolver;
|
||||
|
||||
@@ -23,6 +24,11 @@ class ProjectApiEditForm extends ProjectEditForm
|
||||
parent::buildForm($builder, $options);
|
||||
|
||||
$builder->remove('metaFields');
|
||||
$builder->remove('globalActivities');
|
||||
$builder->add('globalActivities', APITrueFalseType::class, [
|
||||
'label' => 'label.globalActivities',
|
||||
'empty_data' => '1',
|
||||
]);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user