Fix add ip field by adding it in module builder recruitement candidature fields (#31060)

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
This commit is contained in:
Lucas Marcouiller 2024-09-20 18:10:56 +02:00 committed by GitHub
parent 45c32ac9a6
commit 9ecfe2609b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 6 deletions

View file

@ -41,6 +41,6 @@ CREATE TABLE llx_recruitment_recruitmentcandidature(
email_msgid varchar(175), -- Do not use a too large value, it generates trouble with unique index
email_date datetime,
fk_recruitment_origin INTEGER NULL,
-- END MODULEBUILDER FIELDS
ip varchar(250) --ip used to create record (for public submission page)
-- END MODULEBUILDER FIELDS
) ENGINE=innodb;

View file

@ -124,6 +124,7 @@ class RecruitmentCandidature extends CommonObject
'import_key' => array('type' => 'varchar(14)', 'label' => 'ImportId', 'enabled' => 1, 'position' => 1000, 'notnull' => -1, 'visible' => -2,),
'model_pdf' => array('type' => 'varchar(255)', 'label' => 'Model pdf', 'enabled' => 1, 'position' => 1010, 'notnull' => -1, 'visible' => 0,),
'status' => array('type' => 'smallint', 'label' => 'Status', 'enabled' => 1, 'position' => 1000, 'notnull' => 1, 'visible' => 2, 'index' => 1, 'default' => '0', 'arrayofkeyval' => array('0' => 'Draft', '1' => 'Received', '3' => 'ContractProposed', '5' => 'ContractSigned', '8' => 'Refused', '9' => 'Canceled')),
"ip" => array("type" => "varchar(250)", "label" => "Ip", "enabled" => "1", 'position' => 700, 'notnull' => 0, "visible" => "0", "comment" => "ip used to create record (for public submission page)"),
);
public $rowid;
public $entity;
@ -146,12 +147,8 @@ class RecruitmentCandidature extends CommonObject
public $import_key;
public $model_pdf;
public $status;
// END MODULEBUILDER PROPERTIES
/**
* @var string IP address
*/
public $ip;
// END MODULEBUILDER PROPERTIES
/**
* Constructor