Skip to content
This repository was archived by the owner on Feb 25, 2024. It is now read-only.

Commit 81b3573

Browse files
committed
New Live Voting Version 4.3.3 - Changes see Changelog
1 parent 289d2d9 commit 81b3573

File tree

12 files changed

+32
-17
lines changed

12 files changed

+32
-17
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Change Log
2+
## [4.3.3]
3+
- Fixed Bug PLLV-345 - do not present results in more than one column
4+
- Fixed issue with other plugins calling ilUtil::getImagePath - thx to mjansen / https://github.com/studer-raimann/LiveVoting/pull/24
5+
- Fixed Avoid errors with devision by 0 - thx to swiniker / https://github.com/studer-raimann/LiveVoting/pull/23/
6+
- Fix typo in function name - thx to Rillke / https://github.com/studer-raimann/LiveVoting/pull/22
7+
- Unbreak delete-an-option thx to Rillke /
8+
https://github.com/studer-raimann/LiveVoting/pull/21
9+
- Fixed Bug Uncommented method to possibly fix a bug with number range inputs - thx to rsheer / https://github.com/studer-raimann/LiveVoting/pull/18
210

311
## [4.3.2]
412
- Fixed BUG SUPPORT-2161 Use of undefined constant IL_COOKIE_PATH (PHP7.2)"
@@ -73,6 +81,7 @@
7381
- Screen-Id-Component
7482
- PHP version checker
7583
- Improved PIN validation in pin.php
84+
- **Updates to RewriteRules might be required**
7685
- Improved FreeInput config validation
7786

7887
## [4.0.2] - 2018-07-11

classes/QuestionTypes/NumberRange/class.xlvoNumberRangeGUI.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,10 @@ public function initJS($current = false) {
4949
}
5050

5151

52-
/* *
53-
*
54-
* /
5552
protected function clear() {
5653
$this->manager->unvoteAll();
5754
$this->afterSubmit();
58-
}*/
55+
}
5956

6057
/**
6158
*

classes/Voting/class.xlvoVotingGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ protected function import() {
754754
$xlvoOptions[] = $xlvoOption;
755755
}
756756
$xlvoVoting->setVotingOptions($xlvoOptions);
757-
$xlvoVoting->renegerateOptionSorting();
757+
$xlvoVoting->regenerateOptionSorting();
758758
}
759759
$this->cancel();
760760
}

plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_once __DIR__ . "/vendor/srag/dic/src/PHPVersionChecker.php";
44

55
$id = 'xlvo';
6-
$version = '4.3.2';
6+
$version = '4.3.3';
77
$ilias_min_version = '5.3.0';
88
$ilias_max_version = '5.4.999';
99
$responsible = 'studer + raimann ag - Team Custom 1';

sql/dbupdate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@
342342
* @var $xlvoVoting \LiveVoting\Voting\xlvoVoting
343343
*/
344344
foreach (\LiveVoting\Voting\xlvoVoting::get() as $xlvoVoting) {
345-
$xlvoVoting->renegerateOptionSorting();
345+
$xlvoVoting->regenerateOptionSorting();
346346
}
347347

348348
?>

src/Context/Initialisation/Version/v53/xlvoStyleDefinition.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ public function __construct() {
3737
public function getSkin() {
3838
return $this->skin;
3939
}
40+
41+
/**
42+
* @return string
43+
*/
44+
public function getImageDirectory($style_id)
45+
{
46+
return '';
47+
}
4048
}
4149

4250
/**

src/QuestionTypes/FreeOrder/xlvoFreeOrderSubFormGUI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ protected function handleOptions() {
129129
}
130130
}
131131
$this->getXlvoVoting()->setMultiFreeInput(true);
132-
//$this->getXlvoVoting()->renegerateOptionSorting();
132+
//$this->getXlvoVoting()->regenerateOptionSorting();
133133
$this->getXlvoVoting()->store();
134134
}
135135
}

src/QuestionTypes/NumberRange/xlvoNumberRangeSubFormGUI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class xlvoNumberRangeSubFormGUI extends xlvoSubFormGUI {
4040
const START_RANGE_MAX = 1000000;
4141
const END_RANGE_MIN = - 1000000;
4242
const END_RANGE_MAX = 1000000;
43-
//const STEP_RANGE_MIN = 0;
43+
const STEP_RANGE_MIN = 1;
4444
//const STEP_RANGE_MAX = 1000000;
4545
const STEP_RANGE_DEFAULT_VALUE = 1;
4646
const STEP_RANGE_INVALID_INFO = 'qtype_6_invalid_step_range';
@@ -89,7 +89,7 @@ protected function initFormElements() {
8989
//create end range number input
9090
$stepRange = new ilNumberInputGUI($this->txt(self::OPTION_RANGE_STEP), self::OPTION_RANGE_STEP);
9191
$stepRange->setInfo($this->txt(self::OPTION_RANGE_STEP_INFO));
92-
//$stepRange->setMinValue(self::STEP_RANGE_MIN);
92+
$stepRange->setMinValue(self::STEP_RANGE_MIN);
9393
//$stepRange->setMaxValue(self::STEP_RANGE_MAX);
9494
$stepRange->setValue($this->getXlvoVoting()->getStepRange());
9595

src/QuestionTypes/SingleVote/xlvoSingleVoteSubFormGUI.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ protected function handleOptions() {
148148
$xlvoOption->delete();
149149
}
150150
}
151-
$this->getXlvoVoting()->renegerateOptionSorting();
151+
$this->getXlvoVoting()->setVotingOptions($this->options);
152+
$this->getXlvoVoting()->regenerateOptionSorting();
152153
}
153154
}

src/Voting/xlvoVoting.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public function getComputedColums() {
244244
/**
245245
*
246246
*/
247-
public function renegerateOptionSorting() {
247+
public function regenerateOptionSorting() {
248248
$i = 1;
249249
foreach ($this->getVotingOptions() as $votingOption) {
250250
$votingOption->setPosition($i);
@@ -284,7 +284,7 @@ public function fullClone($change_name = true, $clone_options = true) {
284284
$votingOptionNew->setVotingId($newObj->getId());
285285
$votingOptionNew->store();
286286
}
287-
$newObj->renegerateOptionSorting();
287+
$newObj->regenerateOptionSorting();
288288
}
289289

290290
return $newObj;

0 commit comments

Comments
 (0)