forked from Wavyzz/dolibarr
New create public page for recruitment candidature (#31220)
* New creation of public recruitement candidature * Fix some problems * fix lang file * Fix CI * Fix CI --------- Co-authored-by: Hystepik <lmarcouiller@nltechno.com> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
committed by
GitHub
parent
8e62fe4241
commit
b595b30a5b
@@ -52,7 +52,11 @@ function checkNbPostsForASpeceificIp($object, $nb_post_max)
|
||||
$sql = "SELECT COUNT(".(!empty($object->table_rowid) ? $object->table_rowid : 'rowid').") as nb_posts";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX.$object->table_element;
|
||||
$sql .= " WHERE ip = '".$db->escape($object->ip)."'";
|
||||
$sql .= " AND datec > '".$db->idate($minmonthpost)."'";
|
||||
if (array_key_exists('date_creation', $object->fields)) {
|
||||
$sql .= " AND date_creation > '".$db->idate($minmonthpost)."'";
|
||||
} else {
|
||||
$sql .= " AND datec > '".$db->idate($minmonthpost)."'";
|
||||
}
|
||||
$resql = $db->query($sql);
|
||||
if ($resql) {
|
||||
$num = $db->num_rows($resql);
|
||||
|
||||
Reference in New Issue
Block a user