diff --git a/lib/Gocdb_Services/Site.php b/lib/Gocdb_Services/Site.php index 42856663c..223d52ba6 100644 --- a/lib/Gocdb_Services/Site.php +++ b/lib/Gocdb_Services/Site.php @@ -236,13 +236,6 @@ function editSite(\Site $site, $newValues, \User $user = null) { foreach($scopes as $s) { $site->removeScope($s); } -// foreach($scopeIdsToApply as $scopeId){ -// $dql = "SELECT s FROM Scope s WHERE s.id = ?1"; -// $scope = $this->em->createQuery($dql) -// ->setParameter(1, $scopeId) -// ->getSingleResult(); -// $site->addScope($scope); -// } // Link the requested scopes to the site foreach($selectedScopesToApply as $scope){ @@ -312,13 +305,6 @@ function editSite(\Site $site, $newValues, \User $user = null) { ->getSingleResult(); $site->setCountry($country); - // deprecated -// $dql = "SELECT t FROM Timezone t WHERE t.name = ?1"; -// $timezone = $this->em->createQuery($dql) -// ->setParameter(1, $newValues['Timezone']) -// ->getSingleResult(); -// $site->setTimezone($timezone); - $this->em->merge($site); $this->em->flush(); $this->em->getConnection()->commit(); @@ -368,20 +354,18 @@ private function validate($site_data, $type) { /** * Return all {@see \Site}s that satisfy the specfied filter parameters. - *

+ * * $filterParams defines an associative array of optional parameters for * filtering the sites. The supported Key => Value pairs include: - *