Fixes #114 - Can't delete last column anymore
This commit is contained in:
parent
8f2c9f07d4
commit
acbf7db8b5
@ -118,7 +118,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