Skip to content

Commit 2de8ae5

Browse files
authored
Merge pull request #98 from ticktackk/develop
1.3.4
2 parents 5e08404 + 959c77a commit 2de8ae5

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
CHANGELOG
22
==========================
33

4+
## 1.3.4 (`1030470`)
5+
6+
- **Fix:** Testing template modification for specific style does not work (#97)
7+
48
## 1.3.3 (`1030370`)
59

610
- **Fix:** Exception related to `array_key_exists` is thrown when creating a new user (6e6307d75578180d8bb6340367df50a62e7d982f)

XF/Admin/Controller/TemplateModification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function actionTest(ParameterBag $params)
131131
'contentModified' => $contentModified,
132132
'diffs' => $diffs,
133133
'style' => $style
134-
]);
134+
], false);
135135
}
136136

137137
return $response;
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"template": "template_modification_edit",
3+
"description": "Add \"style_id\" hidden input which will contain the style for testing styles",
4+
"execution_order": 6119,
5+
"enabled": true,
6+
"action": "str_replace",
7+
"find": "</xf:form>",
8+
"replace": "<xf:if is=\"($modification.type === 'public') && ($style is not empty)\">\n\t<xf:hiddenval name=\"style_id\" value=\"{$style.style_id}\" />\n</xf:if>\n\n$0"
9+
}

addon.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"legacy_addon_id": "",
33
"title": "Developer Tools",
44
"description": "This add-on provides enhancements for add-on developers.",
5-
"version_id": 1030370,
6-
"version_string": "1.3.3",
5+
"version_id": 1030470,
6+
"version_string": "1.3.4",
77
"dev": "TickTackk",
88
"dev_url": "https://xenforo.com/community/members/ticktackk.90375/",
99
"faq_url": "",

0 commit comments

Comments
 (0)