Skip to content

Commit

Permalink
version 2.1.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Feb 27, 2019
1 parent e8a7500 commit f526a69
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 2.1.13.1 - 2019-02-27

### Fixed
- Fix potential migration issue from 2.1.13 where some fields have no settings.

## 2.1.13 - 2019-02-27

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "verbb/super-table",
"description": "Super-charge your Craft workflow with Super Table. Use it to group fields together or build complex Matrix-in-Matrix solutions.",
"type": "craft-plugin",
"version": "2.1.13",
"version": "2.1.13.1",
"keywords": [
"craft",
"cms",
Expand Down
5 changes: 4 additions & 1 deletion src/migrations/m190227_000000_fix_project_config.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ private function _getFieldData(): array

// Massage the data and index by UID
foreach ($fieldRows as $fieldRow) {
$fieldRow['settings'] = Json::decodeIfJson($fieldRow['settings']);
if ($fieldRow['settings']) {
$fieldRow['settings'] = Json::decodeIfJson($fieldRow['settings']);
}

$fieldInstance = $fieldService->getFieldById($fieldRow['id']);
$fieldRow['contentColumnType'] = $fieldInstance->getContentColumnType();
$fields[$fieldRow['uid']] = $fieldRow;
Expand Down

0 comments on commit f526a69

Please sign in to comment.