From ceccd5a5100f1ca7c050698a625fa2b25dee1238 Mon Sep 17 00:00:00 2001 From: John BOTELLA Date: Mon, 24 Sep 2018 10:16:28 +0200 Subject: [PATCH] Fix prev situation invoice selection --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 54b378ad28144..2615cc9446355 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3336,7 +3336,7 @@ function selectSituationInvoices($selected = '', $socid = 0) if ($obj->situation_final != 1) { //Not prov? if (substr($obj->facnumber, 1, 4) != 'PROV') { - if ($selected == $obj->situation_final) { + if ($selected == $obj->rowid) { $opt .= ''; } else { $opt .= '';