diff --git a/changelog.json b/changelog.json index ccc0c32..cf258a3 100644 --- a/changelog.json +++ b/changelog.json @@ -1,4 +1,12 @@ [ + { + "version": "0.4.8", + "downloadUrl": "https://github.com/engram-design/SuperTable/archive/0.4.8.zip", + "date": "2016-07-16T00:00:00+10:00", + "notes": [ + "[Fixed] Fixed minor issue where width column settings weren't being saved correctly." + ] + }, { "version": "0.4.7", "downloadUrl": "https://github.com/engram-design/SuperTable/archive/0.4.7.zip", diff --git a/supertable/SuperTablePlugin.php b/supertable/SuperTablePlugin.php index f10266b..1a0d887 100755 --- a/supertable/SuperTablePlugin.php +++ b/supertable/SuperTablePlugin.php @@ -14,7 +14,7 @@ public function getName() public function getVersion() { - return '0.4.7'; + return '0.4.8'; } public function getSchemaVersion() diff --git a/supertable/fieldtypes/SuperTableFieldType.php b/supertable/fieldtypes/SuperTableFieldType.php index 5485040..551a079 100755 --- a/supertable/fieldtypes/SuperTableFieldType.php +++ b/supertable/fieldtypes/SuperTableFieldType.php @@ -79,9 +79,11 @@ public function prepSettings($settings) $field->type = $fieldSettings['type']; $field->required = $fieldSettings['required']; - $columns[$field->id] = array( - 'width' => $fieldSettings['width'], - ); + if (isset($fieldSettings['width'])) { + $columns[$field->id] = array( + 'width' => $fieldSettings['width'], + ); + } if (isset($fieldSettings['typesettings'])) { $field->settings = $fieldSettings['typesettings'];