Merge branch 'fix/Issue114_delete_last_column' into 'master'
Fixes #114 - Can't delete last column anymore Correction de la règle qui vérifie que la colonne à supprimer n'est pas la dernière. `strpos` ne retourne jamais `-1` mais `false` See merge request !82
This commit is contained in:
commit
4cb189299f
@ -119,7 +119,7 @@ class AdminPollService {
|
||||
$slots = $this->pollService->allSlotsByPoll($poll);
|
||||
|
||||
// We can't delete the last slot
|
||||
if ($poll->format == 'D' && count($slots) === 1 && strpos($slots[0]->moments, ',') === -1) {
|
||||
if ($poll->format == 'D' && count($slots) === 1 && strpos($slots[0]->moments, ',') === false) {
|
||||
return false;
|
||||
} elseif ($poll->format == 'A' && count($slots) === 1) {
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user