Skip to content

Commit

Permalink
2.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
samhibberd committed Mar 2, 2016
1 parent 5ac8324 commit 181aa08
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ Some things to do, and ideas for potential features:

## FruitLinkIt Changelog

### 0.9.1

* Fixed: Target not retaining it's value

### 2.3.0

Complete rewrite for Craft 2.5.x, same functionality with some UI tweaks and
Expand Down
2 changes: 1 addition & 1 deletion fruitlinkit/FruitLinkItPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function getName()

public function getVersion()
{
return '2.3.0';
return '2.3.1';
}

public function getSchemaVersion()
Expand Down
3 changes: 2 additions & 1 deletion fruitlinkit/fieldtypes/FruitLinkItFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,10 @@ private function _valueToModel($value, $settings = false)

$link->type = isset($value['type']) && $value['type'] != '' ? $value['type'] : false;
$link->value = $link->type ? $value[$link->type] : false;
$link->target = isset($value['target']) ? ($value['target'] == 1 ? '_blank' : false) : false;
$link->customText = isset($value['customText']) ? $value['customText'] : false;
$link->defaultText = $settings->defaultText;
$link->target = isset($value['target']) ? ($value['target'] ? '_blank' : false) : false;


return $link;
}
Expand Down

0 comments on commit 181aa08

Please sign in to comment.