Loading module/Oscar/src/Oscar/Service/ProjectGrantService.php +2 −1 Changes for module/Oscar/src/Oscar/Service/ProjectGrantService.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -553,6 +553,7 @@ class ProjectGrantService implements ServiceLocatorAwareInterface, EntityManager public function specificSearch( $what, &$qb, $activityAlias='c' ) { $oscarNumSeparator = $this->getServiceLocator()->get('OscarConfig')->getConfiguration('oscar_num_separator'); $fieldName = uniqid('num_'); if (preg_match(EOTP::REGEX_EOTP, $what)) { $qb->andWhere($activityAlias.'.codeEOTP = :' . $fieldName) Loading @@ -566,7 +567,7 @@ class ProjectGrantService implements ServiceLocatorAwareInterface, EntityManager } // La saisie est un numéro OSCAR© elseif (preg_match("/^[0-9]{4}DRI.*/mi", $what)) { elseif (preg_match("/^[0-9]{4}$oscarNumSeparator.*/mi", $what)) { $qb->andWhere($activityAlias.'.oscarNum LIKE :'.$fieldName) ->setParameter($fieldName, $what.'%'); } Loading Loading
module/Oscar/src/Oscar/Service/ProjectGrantService.php +2 −1 Changes for module/Oscar/src/Oscar/Service/ProjectGrantService.php: 2 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -553,6 +553,7 @@ class ProjectGrantService implements ServiceLocatorAwareInterface, EntityManager public function specificSearch( $what, &$qb, $activityAlias='c' ) { $oscarNumSeparator = $this->getServiceLocator()->get('OscarConfig')->getConfiguration('oscar_num_separator'); $fieldName = uniqid('num_'); if (preg_match(EOTP::REGEX_EOTP, $what)) { $qb->andWhere($activityAlias.'.codeEOTP = :' . $fieldName) Loading @@ -566,7 +567,7 @@ class ProjectGrantService implements ServiceLocatorAwareInterface, EntityManager } // La saisie est un numéro OSCAR© elseif (preg_match("/^[0-9]{4}DRI.*/mi", $what)) { elseif (preg_match("/^[0-9]{4}$oscarNumSeparator.*/mi", $what)) { $qb->andWhere($activityAlias.'.oscarNum LIKE :'.$fieldName) ->setParameter($fieldName, $what.'%'); } Loading