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 6b41be66 authored by Estéban Ristich's avatar Estéban Ristich
Browse files

Unset loan return to current date

parent 4d7f1429
......@@ -819,7 +819,7 @@ function set_loan_reserved_new($pdo, $equipment_id, $team_id, $date_begin, $date
* @deprecated
*/
function set_loan_update_to_borrowed($pdo, $loan_id) {
$sql = 'UPDATE pret SET status = ?, emprunt = CURRENT_DATE WHERE id = ?;';
$sql = 'UPDATE pret SET status = ? WHERE id = ?;';
$stmt = $pdo->prepare($sql);
$stmt->execute(array(STATUS_LOAN_BORROWED, $loan_id));
}
......
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