diff --git a/php-classes/Gatekeeper/Endpoints/Endpoint.php b/php-classes/Gatekeeper/Endpoints/Endpoint.php index 959d4e4..d73db40 100644 --- a/php-classes/Gatekeeper/Endpoints/Endpoint.php +++ b/php-classes/Gatekeeper/Endpoints/Endpoint.php @@ -245,6 +245,10 @@ public static function validatePath(RecordValidator $validator, Endpoint $Endpoi return; } + if (!$Endpoint->isFieldDirty('Path')) { + return; + } + $duplicateConditions = [ 'Path' => $Endpoint->Path ]; @@ -349,7 +353,7 @@ public function applyRewrites($url) $cacheKey = "endpoints/$this->ID/rewrites"; // get ordered list of rewrites - if (false == ($rewriteIDs = Cache::fetch($cacheKey))) { + if (false === ($rewriteIDs = Cache::fetch($cacheKey))) { $rewriteIDs = array_map(function($Rewrite) { return $Rewrite->ID; }, $this->Rewrites);