From 3f1f3aa056d2b52ca659bf303e44a81928a7d675 Mon Sep 17 00:00:00 2001 From: Mats Mikkel Rummelhoff Date: Sat, 19 Nov 2016 16:08:35 +0100 Subject: [PATCH] Fixes issue with AND conditionals not working as expected --- README.md | 10 +++++++--- reasons/ReasonsPlugin.php | 4 ++-- ...dd7e.js => reasons-a08bbfa4180502815a4e.js} | 2 +- reasons/resources/rev-manifest.json | 4 ++-- ...s-38f07b2161.css => reasons-8f9624f667.css} | 0 releases.json | 8 ++++++++ source/javascripts/modules/render.js | 18 +++++++++++------- source/javascripts/reasons.js | 14 +++++++------- 8 files changed, 38 insertions(+), 22 deletions(-) rename reasons/resources/javascripts/{reasons-77b7190892588775dd7e.js => reasons-a08bbfa4180502815a4e.js} (60%) rename reasons/resources/stylesheets/{reasons-38f07b2161.css => reasons-8f9624f667.css} (100%) diff --git a/README.md b/README.md index 994b7b9..ce31ae1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Reasons v. 1.0.7 for Craft CMS ![Craft 2.5](https://img.shields.io/badge/craft-2.5-red.svg?style=flat-square) +# Reasons v. 1.0.8 for Craft CMS ![Craft 2.5](https://img.shields.io/badge/craft-2.5-red.svg?style=flat-square) _Supercharge your field layouts with conditionals._ @@ -10,7 +10,7 @@ _Big props to [Benjamin Fleming](https://github.com/benjamminf) for some good id ## Recent updates * Support for [Button Box](http://plugins.supercooldesign.co.uk/plugin/button-box) custom FieldTypes as toggle fields -* Support for all native relational fields (Entries, Assets, Categories, Tags and Users) as toggle fields +* Support for all native relational fields (Entries, Assets, Categories, Tags and Users) as toggle fields * Support for [Solspace Calendar](https://solspace.com/craft/calendar) ## Requirements @@ -58,7 +58,7 @@ The following custom FieldTypes are also supported: ### Where does it work? -Reasons currently works for +Reasons currently works for * Entries * Categories @@ -110,6 +110,10 @@ Please report any bugs, feature requests or other issues [here](https://github.c ### Changelog +#### 1.0.8 (19.11.2016) + +* [Fixed] Fixes issue with AND conditionals not working as expected + #### 1.0.7 (10.01.2016) * [Fixed] Fixes minor JavaScript bug (thanks @benf!) diff --git a/reasons/ReasonsPlugin.php b/reasons/ReasonsPlugin.php index a3868e8..1daec76 100644 --- a/reasons/ReasonsPlugin.php +++ b/reasons/ReasonsPlugin.php @@ -18,7 +18,7 @@ class ReasonsPlugin extends BasePlugin { - protected $_version = '1.0.7'; + protected $_version = '1.0.8'; protected $_schemaVersion = '1.1'; protected $_developer = 'Mats Mikkel Rummelhoff'; protected $_developerUrl = 'http://mmikkel.no'; @@ -359,7 +359,7 @@ protected function getConditionals() // $productTypes = craft()->commerce_productTypes->getAllProductTypes(); // if ($productTypes) { // foreach ($productTypes as $productType) { - // $sources['commerceProductType:'.$productType->id] = + // $sources['commerceProductType:'.$productType->id] = // } // } // } diff --git a/reasons/resources/javascripts/reasons-77b7190892588775dd7e.js b/reasons/resources/javascripts/reasons-a08bbfa4180502815a4e.js similarity index 60% rename from reasons/resources/javascripts/reasons-77b7190892588775dd7e.js rename to reasons/resources/javascripts/reasons-a08bbfa4180502815a4e.js index 4585e55..f6947df 100644 --- a/reasons/resources/javascripts/reasons-77b7190892588775dd7e.js +++ b/reasons/resources/javascripts/reasons-a08bbfa4180502815a4e.js @@ -5,4 +5,4 @@ * Licensed under MIT license. * */ -!function(e){e.fn.hasAttr=function(e){for(var t=0,i=this.length;t'},modal:function(){return'