Skip to content

Commit

Permalink
Update release date
Browse files Browse the repository at this point in the history
  • Loading branch information
reganlawton committed Mar 30, 2021
1 parent 6e238de commit 552bbd0
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Related Changelog

## 1.1.6 - 2020-03-30

### Updated
- Thanks to @SHoogland for updating lookup for sections and categories to use handle instead of ID to support the de-sync between different databases. WARNING: You'll may need to reconfigure the plugin settings.
- Set minimum PHP support to >=7.2.5

### Fixed
- Changed status icon color to support Entry status colors reported by @terryupton.
- Hide category options if no categories' setup, fixing UI bug.

## 1.1.5 - 2020-03-23

### Added
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "wrav/related",
"description": "A simple plugin that adds a widget within the Craft CP page sidebar, allowing you to quickly and easily access related entries.",
"type": "craft-plugin",
"version": "1.1.5",
"version": "1.1.6",
"keywords": [
"craft",
"cms",
Expand All @@ -22,6 +22,7 @@
}
],
"require": {
"php": ">=7.2.5",
"craftcms/cms": "^3.0.0-RC1"
},
"autoload": {
Expand Down
1 change: 0 additions & 1 deletion src/controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public function actionIndex()
$response->format = Response::FORMAT_RAW;

return $response;

}

Craft::$app->end();
Expand Down
2 changes: 1 addition & 1 deletion src/templates/_modal.twig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</thead>
{% for item in relations %}
{% set title = item.title ?? item.name ?? item.username ?? null %}
{% set status = item.enabled ? 'enabled' : 'dist' %}
{% set status = item.status %}
{% set cpEditUrl = item.cpEditUrl ?? '#' %}

<tr>
Expand Down
18 changes: 10 additions & 8 deletions src/templates/settings.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@
options: optionsSections,
}) }}

{{ forms.multiselectField({
label: "Allowed Categories"|t,
instructions: "Choose which categories the relation widget will show on. Leave blank for all categories"|t,
id: 'allowedCategories',
name: 'allowedCategories',
values: settings['allowedCategories'],
options: optionsCategories,
}) }}
{% if optionsCategories|length %}
{{ forms.multiselectField({
label: "Allowed Categories"|t,
instructions: "Choose which categories the relation widget will show on. Leave blank for all categories"|t,
id: 'allowedCategories',
name: 'allowedCategories',
values: settings['allowedCategories'],
options: optionsCategories,
}) }}
{% endif %}

0 comments on commit 552bbd0

Please sign in to comment.