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

Commit

Permalink
New Live Voting Version 4.3.3 - Changes see Changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
mstuder committed Oct 4, 2019
1 parent 289d2d9 commit 81b3573
Show file tree
Hide file tree
Showing 12 changed files with 32 additions and 17 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Change Log
## [4.3.3]
- Fixed Bug PLLV-345 - do not present results in more than one column
- Fixed issue with other plugins calling ilUtil::getImagePath - thx to mjansen / https://github.com/studer-raimann/LiveVoting/pull/24
- Fixed Avoid errors with devision by 0 - thx to swiniker / https://github.com/studer-raimann/LiveVoting/pull/23/
- Fix typo in function name - thx to Rillke / https://github.com/studer-raimann/LiveVoting/pull/22
- Unbreak delete-an-option thx to Rillke /
https://github.com/studer-raimann/LiveVoting/pull/21
- Fixed Bug Uncommented method to possibly fix a bug with number range inputs - thx to rsheer / https://github.com/studer-raimann/LiveVoting/pull/18

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

## [4.0.2] - 2018-07-11
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,10 @@ public function initJS($current = false) {
}


/* *
*
* /
protected function clear() {
$this->manager->unvoteAll();
$this->afterSubmit();
}*/
}

/**
*
Expand Down
2 changes: 1 addition & 1 deletion classes/Voting/class.xlvoVotingGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ protected function import() {
$xlvoOptions[] = $xlvoOption;
}
$xlvoVoting->setVotingOptions($xlvoOptions);
$xlvoVoting->renegerateOptionSorting();
$xlvoVoting->regenerateOptionSorting();
}
$this->cancel();
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_once __DIR__ . "/vendor/srag/dic/src/PHPVersionChecker.php";

$id = 'xlvo';
$version = '4.3.2';
$version = '4.3.3';
$ilias_min_version = '5.3.0';
$ilias_max_version = '5.4.999';
$responsible = 'studer + raimann ag - Team Custom 1';
Expand Down
2 changes: 1 addition & 1 deletion sql/dbupdate.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
* @var $xlvoVoting \LiveVoting\Voting\xlvoVoting
*/
foreach (\LiveVoting\Voting\xlvoVoting::get() as $xlvoVoting) {
$xlvoVoting->renegerateOptionSorting();
$xlvoVoting->regenerateOptionSorting();
}

?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@ public function __construct() {
public function getSkin() {
return $this->skin;
}

/**
* @return string
*/
public function getImageDirectory($style_id)
{
return '';
}
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/QuestionTypes/FreeOrder/xlvoFreeOrderSubFormGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected function handleOptions() {
}
}
$this->getXlvoVoting()->setMultiFreeInput(true);
//$this->getXlvoVoting()->renegerateOptionSorting();
//$this->getXlvoVoting()->regenerateOptionSorting();
$this->getXlvoVoting()->store();
}
}
4 changes: 2 additions & 2 deletions src/QuestionTypes/NumberRange/xlvoNumberRangeSubFormGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class xlvoNumberRangeSubFormGUI extends xlvoSubFormGUI {
const START_RANGE_MAX = 1000000;
const END_RANGE_MIN = - 1000000;
const END_RANGE_MAX = 1000000;
//const STEP_RANGE_MIN = 0;
const STEP_RANGE_MIN = 1;
//const STEP_RANGE_MAX = 1000000;
const STEP_RANGE_DEFAULT_VALUE = 1;
const STEP_RANGE_INVALID_INFO = 'qtype_6_invalid_step_range';
Expand Down Expand Up @@ -89,7 +89,7 @@ protected function initFormElements() {
//create end range number input
$stepRange = new ilNumberInputGUI($this->txt(self::OPTION_RANGE_STEP), self::OPTION_RANGE_STEP);
$stepRange->setInfo($this->txt(self::OPTION_RANGE_STEP_INFO));
//$stepRange->setMinValue(self::STEP_RANGE_MIN);
$stepRange->setMinValue(self::STEP_RANGE_MIN);
//$stepRange->setMaxValue(self::STEP_RANGE_MAX);
$stepRange->setValue($this->getXlvoVoting()->getStepRange());

Expand Down
3 changes: 2 additions & 1 deletion src/QuestionTypes/SingleVote/xlvoSingleVoteSubFormGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ protected function handleOptions() {
$xlvoOption->delete();
}
}
$this->getXlvoVoting()->renegerateOptionSorting();
$this->getXlvoVoting()->setVotingOptions($this->options);
$this->getXlvoVoting()->regenerateOptionSorting();
}
}
4 changes: 2 additions & 2 deletions src/Voting/xlvoVoting.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public function getComputedColums() {
/**
*
*/
public function renegerateOptionSorting() {
public function regenerateOptionSorting() {
$i = 1;
foreach ($this->getVotingOptions() as $votingOption) {
$votingOption->setPosition($i);
Expand Down Expand Up @@ -284,7 +284,7 @@ public function fullClone($change_name = true, $clone_options = true) {
$votingOptionNew->setVotingId($newObj->getId());
$votingOptionNew->store();
}
$newObj->renegerateOptionSorting();
$newObj->regenerateOptionSorting();
}

return $newObj;
Expand Down
6 changes: 3 additions & 3 deletions src/Voting/xlvoVotingManager2.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function vote($option = NULL) {
*
*/
public function prepare() {
$this->getVoting()->renegerateOptionSorting();
$this->getVoting()->regenerateOptionSorting();
$this->getPlayer()->setStatus(xlvoPlayer::STAT_RUNNING);
$this->getPlayer()->freeze();
}
Expand Down Expand Up @@ -366,7 +366,7 @@ public function previous() {

$this->player->setActiveVoting($prev_id);
$this->player->store();
$this->getVoting()->renegerateOptionSorting();
$this->getVoting()->regenerateOptionSorting();
}


Expand All @@ -382,7 +382,7 @@ public function next() {
$this->handleQuestionSwitching();
$this->player->setActiveVoting($next_id);
$this->player->store();
$this->getVoting()->renegerateOptionSorting();
$this->getVoting()->regenerateOptionSorting();
}


Expand Down
2 changes: 1 addition & 1 deletion templates/default/Display/Bar/tpl.bar_collection.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<br>
<div id="bars" class="bars">
<!-- BEGIN bar -->
<div class="col-md-4">
<div class="col-md-12">
{BAR}
</div>
<!-- END bar -->
Expand Down

0 comments on commit 81b3573

Please sign in to comment.