diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 9915f1b4e4c..a0fefdd2ae2 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -3314,7 +3314,7 @@ class Form 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 .= '';