Skip to content

Commit

Permalink
version 1.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Jul 15, 2016
1 parent ea4700d commit 362c425
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions changelog.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
[
{
"version": "1.5.1",
"downloadUrl": "https://github.com/engram-design/FieldManager/archive/1.5.1.zip",
"date": "2016-07-16T00:00:00+10:00",
"notes": [
"[Fixed] Fixed issue with Matrix/Super Table cloning not applying changes made on the edit screen."
]
},
{
"version": "1.5.0",
"downloadUrl": "https://github.com/engram-design/FieldManager/archive/1.5.0.zip",
Expand Down
2 changes: 1 addition & 1 deletion fieldmanager/FieldManagerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function getName()

public function getVersion()
{
return '1.5.0';
return '1.5.1';
}

public function getSchemaVersion()
Expand Down
4 changes: 2 additions & 2 deletions fieldmanager/services/FieldManagerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public function saveField($field, $originField)
// Because we're essentially editing a current field, we need to remove ID's for blocks and inner fields.
// Not doing this will move all fields from one Matrix to another - instead of creating new ones.
if ($field->type == 'Matrix') {
$field->settings = craft()->fieldManager->processMatrix($originField);
$field->settings = craft()->fieldManager->processMatrix($field);
}

if ($field->type == 'SuperTable') {
$field->settings = craft()->fieldManager->processSuperTable($originField);
$field->settings = craft()->fieldManager->processSuperTable($field);
}

// Send off to Craft's native fieldSave service for heavy lifting.
Expand Down

0 comments on commit 362c425

Please sign in to comment.