Fix evaluation interview module (#26183)

Co-authored-by: Hystepik <lucas.marcouiller@gmail.com>
This commit is contained in:
Lucas Marcouiller 2023-10-11 18:05:55 +02:00 committed by GitHub
parent b2ec9132ee
commit aab0897bb6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha');
$id = GETPOST('id', 'int');
$ref = GETPOST('ref', 'alpha');
$fk_job = GETPOST('fk_job', 'int');
$fk_job = (GETPOSTISSET('fk_job') ? GETPOST('fk_job', 'int') : $id);
$fk_user = GETPOST('fk_user', 'int');
//$start_date = date('Y-m-d', GETPOST('date_startyear', 'int').'-'.GETPOST('date_startmonth', 'int').'-'.GETPOST('date_startday', 'int'));
$start_date = dol_mktime(0, 0, 0, GETPOST('date_startmonth', 'int'), GETPOST('date_startday', 'int'), GETPOST('date_startyear', 'int'));

View file

@ -678,7 +678,7 @@ if ($action != "create" && $action != "edit") {
print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, (!empty($cssforfield) ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, (!empty($cssforfield) ? $cssforfield . ' ' : '')) . "\n";
}
}
print '<td></td>';
//print '<td></td>';
print '<td></td>';
print '</tr>' . "\n";

View file

@ -263,7 +263,7 @@ if ($object->id > 0 && (empty($action) || ($action != 'edit' && $action != 'crea
}
// table of skillRank linked to current object
$TSkillsJob = $skill->fetchAll('ASC', 't.rowid', 0, 0, array('customsql' => 'fk_object=' . ((int) $id) . " AND objecttype='" . $db->escape($objecttype) . "'"));
$TSkillsJob = $skill->fetchAll('ASC', 't.rowid', 0, 0);
$TAlreadyUsedSkill = array();
if (is_array($TSkillsJob) && !empty($TSkillsJob)) {