Skip to content

Commit

Permalink
version 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Feb 29, 2016
1 parent 20e23ec commit 45efc2f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 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.4",
"downloadUrl": "https://github.com/engram-design/SuperTable/archive/0.4.4.zip",
"date": "2016-02-29 13:45:00",
"notes": [
"[Fixed] Fixed issue with rows not displaying correctly for Static Field option."
]
},
{
"version": "0.4.3",
"downloadUrl": "https://github.com/engram-design/SuperTable/archive/0.4.3.zip",
Expand Down
4 changes: 4 additions & 0 deletions supertable/fieldtypes/SuperTableFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ public function getSearchKeywords($value)
$keywords = array();
$contentService = craft()->content;

if ($this->settings->staticField) {
$value = array($value);
}

foreach ($value as $block) {
$originalContentTable = $contentService->contentTable;
$originalFieldColumnPrefix = $contentService->fieldColumnPrefix;
Expand Down
4 changes: 3 additions & 1 deletion supertable/templates/rowInput.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
{% set totalNewBlocks = 0 %}

{% if settings.staticField %}
{% set blocks = [blocks] %}
{% if blocks %}
{% set blocks = [blocks] %}
{% endif %}
{% endif %}

{% for block in blocks %}
Expand Down
4 changes: 3 additions & 1 deletion supertable/templates/tableInput.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
{% set totalNewBlocks = 0 %}

{% if settings.staticField %}
{% set blocks = [blocks] %}
{% if blocks %}
{% set blocks = [blocks] %}
{% endif %}
{% endif %}

{% for block in blocks %}
Expand Down

0 comments on commit 45efc2f

Please sign in to comment.