Skip to content

Commit

Permalink
Merge pull request #11069 from atm-gauthier/6.0_fix_select_prev_situ
Browse files Browse the repository at this point in the history
Fix prev situation invoice selection (backport fix 8.0)
  • Loading branch information
eldy committed Apr 25, 2019
2 parents 5dfc1c0 + 31897f5 commit 5259547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/html.form.class.php
Expand Up @@ -3242,7 +3242,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 .= '<option value="' . $obj->rowid . '" selected>' . $obj->facnumber . '</option>';
} else {
$opt .= '<option value="' . $obj->rowid . '">' . $obj->facnumber . '</option>';
Expand Down

0 comments on commit 5259547

Please sign in to comment.