Skip to content

Commit d1022d5

Browse files
authored
Project one round default (#645)
* Re-enable round choice select to allow to set one_round manually if default failed * Default project to one_round
1 parent b7a10e9 commit d1022d5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Goteo/Library/Forms/Model/ProjectCampaignForm.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ public function createForm(): ProjectCampaignForm
7575
if ($admin || $project->type != Conf::TYPE_PERMANENT ) {
7676
$builder
7777
->add('one_round', ChoiceType::class, [
78-
'disabled' => true, //$this->getReadonly(),
78+
'disabled' => $this->getReadonly(),
7979
'label' => 'costs-field-select-rounds',
8080
'required' => true,
8181
'expanded' => true,
8282
'wrap_class' => 'col-xs-6',
8383
'choices' => $this->getRoundsAsChoices(),
84-
'data' => 1,
8584
'empty_data' => 1,
8685
'attr' => [
8786
'help' => '<span>' . Text::get('tooltip-project-rounds-sunset') . '</span>'

src/Goteo/Model/Project.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Project extends Model {
179179
$watch = 0,
180180
$days_round1 = 40,
181181
$days_round2 = 40,
182-
$one_round = 0,
182+
$one_round = 1,
183183
$help_cost = 0,
184184
$help_license= 0,
185185
$callInstance = null, // si está en una convocatoria

0 commit comments

Comments
 (0)