Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2015-11-19 07:12:24 +0300
committerThomas Steur <thomas.steur@gmail.com>2015-11-19 07:14:32 +0300
commitada836d750a74ddfda03b48baf2fa1c1173e39ff (patch)
treec479878e9b79d8883e03d8c302463e4a9a791297 /plugins/API
parent0bbf8eb60be3e205d7c230e430ebd7765ef38526 (diff)
make new operators available in the UI, moved check to segment data class
Diffstat (limited to 'plugins/API')
-rw-r--r--plugins/API/API.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/plugins/API/API.php b/plugins/API/API.php
index 09e4719824..e5d9fbcd2a 100644
--- a/plugins/API/API.php
+++ b/plugins/API/API.php
@@ -129,14 +129,6 @@ class API extends \Piwik\Plugin\API
$segment->setPermission($isAuthenticatedWithViewAccess);
}
- if ($segment->getSqlSegment() && $segment->getUnionOfSegments()) {
- throw new \Exception(sprintf('Union of segments and SQL segment is set for segment "%s", use only one of them', $segment->getName()));
- }
-
- if ($segment->getUnionOfSegments() && in_array($segment->getSegment(), $segment->getUnionOfSegments(), true)) {
- throw new \Exception(sprintf('The segment %s contains a union segment to itself', $segment->getName()));
- }
-
$segments[] = $segment->toArray();
}
}