Skip to content

Commit 7a3add2

Browse files
committed
Reenable two rounds per projects
1 parent e5a027d commit 7a3add2

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ public function createForm(): ProjectCampaignForm
8383
'choices' => $this->getRoundsAsChoices(),
8484
'empty_data' => 1,
8585
'attr' => [
86-
'help' => '<span>' . Text::get('tooltip-project-rounds-sunset') . '</span>'
87-
//'help' => '<span class="' . ($project->one_round ? '' : 'hidden') . '">' . Text::get('tooltip-project-rounds') . '</span><span class="' . ($project->one_round ? 'hidden' : '') . '">' . Text::get('tooltip-project-2rounds') . '</span>'
86+
// 'help' => '<span>' . Text::get('tooltip-project-rounds-sunset') . '</span>'
87+
'help' => '<span class="' . ($project->one_round ? '' : 'hidden') . '">' . Text::get('tooltip-project-rounds') . '</span><span class="' . ($project->one_round ? 'hidden' : '') . '">' . Text::get('tooltip-project-2rounds') . '</span>'
8888
]
8989
]);
9090
}

src/Goteo/Model/Project.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1593,12 +1593,13 @@ public function save (&$errors = array()) {
15931593
// fail para pasar por todo antes de devolver false
15941594
$fail = false;
15951595

1596-
if (in_array($this->status, [self::STATUS_DRAFT, self::STATUS_EDITING, self::STATUS_REVIEWING])
1597-
&& $this->one_round != 1)
1598-
{
1599-
$errors[] = Text::get('tooltip-project-rounds-sunset');
1600-
$fail = true;
1601-
}
1596+
// Desactivar proyectos a dos rondas
1597+
// if (in_array($this->status, [self::STATUS_DRAFT, self::STATUS_EDITING, self::STATUS_REVIEWING])
1598+
// && $this->one_round != 1)
1599+
// {
1600+
// $errors[] = Text::get('tooltip-project-rounds-sunset');
1601+
// $fail = true;
1602+
// }
16021603

16031604
// los nif sin guiones, espacios ni puntos
16041605
$this->contract_nif = str_replace(array('_', '.', ' ', '-', ',', ')', '('), '', $this->contract_nif);

0 commit comments

Comments
 (0)