Vous avez reçu un message "Your GitLab account has been locked ..." ? Pas d'inquiétude : lisez cet article https://docs.gricad-pages.univ-grenoble-alpes.fr/help/unlock/

Commit 541528ba authored by Gabriel Moreau's avatar Gabriel Moreau
Browse files

Merge branch 'devel' of gricad-gitlab.univ-grenoble-alpes.fr:legi/soft/gestex into devel

parents 6cff0e50 3e24c70e
......@@ -29,7 +29,7 @@ if ($mode == 'Ajouter') {
} else if ($mode == 'Modifier') {
en_tete('Modifier une intervention');
$intervention_fetch = get_intervention_listall_by_equipment($pdo, $equipment_id);
$recipe_fetch = get_recipe_listall_by_equipment($pdo, $equipment_id);
$recipe_fetch = get_recipe_listall_by_intervention($pdo, $intervention_id);
$recipe_count = count($recipe_fetch);
}
?>
......
......@@ -17,10 +17,19 @@ unset($erreur);
$description = param_post('description');
$equipment_id = param_post('equipment');
$supplier_id = param_post('company');
$recipe = param_post('recipe');
$date = param_post('date');
$intervention_id = param_post('id');
$recipe = '';
if (isset($_FILES["recipe"])) {
$recipe = $_FILES['recipe']['name'];
$recipe = str_replace(' ', '_', $recipe);
$recipe = str_replace('é', 'e', $recipe);
$recipe = str_replace('è', 'e', $recipe);
$recipe = str_replace('à', 'a', $notice);
}
$pdo = connect_db_or_alert();
$new = True;
......
......@@ -1465,7 +1465,7 @@ function set_recipe_new($pdo, $intervention_id, $file_field_name) {
$iostat = move_uploaded_file($recipe_tmp_file, $new_dir.'/'.$recipe_filename_kebab);
if (!$iostat) {
error_log('Error: not move recipe file '.$recipe_filename_upload.' to '.$recipe_filename_kebab);
// del_recipe_by_id($pdo, $recipe_id);
del_recipe_by_id($pdo, $recipe_id);
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment