Skip to content

Commit

Permalink
2.1.3, check changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
Rico Kaltofen committed Apr 11, 2019
1 parent a7361ce commit fe3e163
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
@@ -1,6 +1,12 @@
# Changelog
All notable changes to this project will be documented in this file.

## [2.1.3] - 2019-04-11

### Fixed
- deleteRow deleted the wrong row
- updated documentation

## [2.1.2] - 2019-04-11

### Fixed
Expand Down
Binary file modified doc/presentation.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified doc/presentation.webm
Binary file not shown.
4 changes: 2 additions & 2 deletions src/Widget/MultiColumnEditor.php
Expand Up @@ -175,11 +175,11 @@ public function addRow(int $offset = 0)
*/
public function deleteRow(int $offset = 0)
{
if (!\is_array($this->varValue) || empty($this->varValue)) {
if (!\is_array($this->varValue) || empty($this->varValue) || !isset($this->varValue[$offset])) {
return;
}

array_splice($this->varValue, $offset, 1);
unset($this->varValue[$offset]);
}

/**
Expand Down

0 comments on commit fe3e163

Please sign in to comment.