diff --git a/application/controllers/WorldcheckController.php b/application/controllers/WorldcheckController.php index 6bce62c04..60b890fb6 100644 --- a/application/controllers/WorldcheckController.php +++ b/application/controllers/WorldcheckController.php @@ -33,7 +33,8 @@ class WorldcheckController extends Zend_Controller_Action if (!$user->getScreenerName() || $user->getScreenerName()!=$param->dirNom || substr($user->getScreenerNameIdentifier(),0,3)!='so_' || $user->getNameType()!=$param->dirType) { $idClient = $user->getIdClient(); - $localDBParams = $wcLocal->getScreenerId($idClient, $data); + $login = $user->getLogin(); + $localDBParams = $wcLocal->getScreenerId($idClient, $login, $data); $this->nameIdentifier = $localDBParams->nameIdentifier; //Save nameIdentifier, name, matchCount into session diff --git a/application/models/Worldcheck.php b/application/models/Worldcheck.php index 4a3c670c9..ac510ce6b 100644 --- a/application/models/Worldcheck.php +++ b/application/models/Worldcheck.php @@ -10,7 +10,7 @@ class Application_Model_Worldcheck extends Zend_Db_Table_Abstract * @param object $data * @return object */ - public function getScreenerId($idClient, $data) + public function getScreenerId($idClient, $login, $data) { $result = new stdClass(); $sql = $this->select() @@ -26,7 +26,8 @@ class Application_Model_Worldcheck extends Zend_Db_Table_Abstract $result->nameIdentifier = $wc->getScreener($data); $result->matchCount = $wc->getDetailsName($result->nameIdentifier)->unresolvedMatchCount; $param = array( - 'idClient' => $idClient, + 'idClient' => $idClient, + 'login' => $login, 'nameIdentifier' => $result->nameIdentifier, 'matchCount' => $result->matchCount, 'name' => $data->name, diff --git a/scripts/build/config/_sql/structure/worldcheck.sql b/scripts/build/config/_sql/structure/worldcheck.sql index 7e37b43c0..97db8de6e 100644 --- a/scripts/build/config/_sql/structure/worldcheck.sql +++ b/scripts/build/config/_sql/structure/worldcheck.sql @@ -1,6 +1,7 @@ CREATE TABLE IF NOT EXISTS `worldcheck` ( `id` int(11) NOT NULL AUTO_INCREMENT, `idClient` char(5) NOT NULL, + `login` char(25) NOT NULL, `nameIdentifier` varchar(23) NOT NULL, `name` varchar(50) NOT NULL, `nameType` varchar(12) NOT NULL,