Issue #0001653: add login column in the worldcheck table
This commit is contained in:
parent
0212e8e6ea
commit
6eb3063e40
@ -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
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user