File tree Expand file tree Collapse file tree 4 files changed +18
-2
lines changed
Expand file tree Collapse file tree 4 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 11[
2+ {
3+ "version" : " 0.4.4" ,
4+ "downloadUrl" : " https://github.com/engram-design/SuperTable/archive/0.4.4.zip" ,
5+ "date" : " 2016-02-29 13:45:00" ,
6+ "notes" : [
7+ " [Fixed] Fixed issue with rows not displaying correctly for Static Field option."
8+ ]
9+ },
210 {
311 "version" : " 0.4.3" ,
412 "downloadUrl" : " https://github.com/engram-design/SuperTable/archive/0.4.3.zip" ,
Original file line number Diff line number Diff line change @@ -359,6 +359,10 @@ public function getSearchKeywords($value)
359359 $ keywords = array ();
360360 $ contentService = craft ()->content ;
361361
362+ if ($ this ->settings ->staticField ) {
363+ $ value = array ($ value );
364+ }
365+
362366 foreach ($ value as $ block ) {
363367 $ originalContentTable = $ contentService ->contentTable ;
364368 $ originalFieldColumnPrefix = $ contentService ->fieldColumnPrefix ;
Original file line number Diff line number Diff line change 99 {% set totalNewBlocks = 0 %}
1010
1111 {% if settings.staticField %}
12- {% set blocks = [blocks] %}
12+ {% if blocks %}
13+ {% set blocks = [blocks] %}
14+ {% endif %}
1315 {% endif %}
1416
1517 {% for block in blocks %}
Original file line number Diff line number Diff line change 2626 {% set totalNewBlocks = 0 %}
2727
2828 {% if settings.staticField %}
29- {% set blocks = [blocks] %}
29+ {% if blocks %}
30+ {% set blocks = [blocks] %}
31+ {% endif %}
3032 {% endif %}
3133
3234 {% for block in blocks %}
You can’t perform that action at this time.
0 commit comments