diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2016-12-12 13:23:02 +0300 |
---|---|---|
committer | Matthieu Aubry <mattab@users.noreply.github.com> | 2016-12-12 13:23:02 +0300 |
commit | bfb0393b4316cb0b7270636565dace422372aa97 (patch) | |
tree | bd5456a4200e1b1b508963464bc063f0d2e9b126 /plugins/MobileAppMeasurable | |
parent | e8ca3f756842d368cd94f3f4dcd288d6ccffc8d3 (diff) |
Fix website measurable type was defining settings and properties for all types (#10991)
* Fix website measurable type was defining settings and properties for all types
The settings specified in website measurable type should not apply to any other type by default.
* add possibility to extend website settings
* fix comparison was wrong
* fix comparison was wrong
* trying to fix the tests
* fix test
* tweak code
* add test to make sure validation works with any type
* add possibility to update group via settings
Diffstat (limited to 'plugins/MobileAppMeasurable')
-rw-r--r-- | plugins/MobileAppMeasurable/MeasurableSettings.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/plugins/MobileAppMeasurable/MeasurableSettings.php b/plugins/MobileAppMeasurable/MeasurableSettings.php new file mode 100644 index 0000000000..100784d61d --- /dev/null +++ b/plugins/MobileAppMeasurable/MeasurableSettings.php @@ -0,0 +1,17 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + */ + +namespace Piwik\Plugins\MobileAppMeasurable; + +class MeasurableSettings extends \Piwik\Plugins\WebsiteMeasurable\MeasurableSettings +{ + protected function shouldShowSettingsForType($type) + { + return $type === Type::ID; + } +} |