From 6c002184c5609a06e28ab40ed3f0dcbb2edc5ec4 Mon Sep 17 00:00:00 2001 From: Zephyriony <142790847+zephyriony@users.noreply.github.com> Date: Wed, 5 Jun 2024 14:59:20 +0200 Subject: [PATCH] Research for the public note field in propals (#29703) * Research for the public note field in propals * Update list.php * Update list.php * Update list.php * Update list.php * Update list.php * Update list.php --------- Co-authored-by: Laurent Destailleur --- htdocs/comm/propal/list.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index b740abf238e..9d908499775 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -144,6 +144,7 @@ $search_date_signature_endyear = GETPOSTINT('search_date_signature_endyear'); $search_date_signature_start = dol_mktime(0, 0, 0, $search_date_signature_startmonth, $search_date_signature_startday, $search_date_signature_startyear); $search_date_signature_end = dol_mktime(23, 59, 59, $search_date_signature_endmonth, $search_date_signature_endday, $search_date_signature_endyear); $search_status = GETPOST('search_status', 'alpha'); +$search_note_public = GETPOST('search_note_public', 'alpha'); // Pagination $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit; @@ -718,6 +719,9 @@ if ($search_date_signature_start) { if ($search_date_signature_end) { $sql .= " AND p.date_signature <= '".$db->idate($search_date_signature_end)."'"; } +if ($search_note_public) { + $sql .= " AND p.note_public LIKE '%".$db->escape($db->escapeforlike($search_note_public))."%'"; +} // Search on user if ($search_user > 0) { $sql .= " AND EXISTS ("; @@ -1452,6 +1456,7 @@ if (!empty($arrayfields['p.date_cloture']['checked'])) { if (!empty($arrayfields['p.note_public']['checked'])) { // Note public print ''; + print ''; print ''; } if (!empty($arrayfields['p.note_private']['checked'])) {