Skip to content

Commit

Permalink
version 0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jul 15, 2016
1 parent 12cf23f commit df9e209
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
8 changes: 8 additions & 0 deletions changelog.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion supertable/SuperTablePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getName()

public function getVersion()
{
return '0.4.7';
return '0.4.8';
}

public function getSchemaVersion()
Expand Down
8 changes: 5 additions & 3 deletions supertable/fieldtypes/SuperTableFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down

0 comments on commit df9e209

Please sign in to comment.