Fix escape js
This commit is contained in:
parent
0a39067cd6
commit
893eff03ba
1 changed files with 1 additions and 1 deletions
|
|
@ -2057,7 +2057,7 @@ if ($num > 0) {
|
|||
if (strpos($obj->ref, 'PROV') !== false) {
|
||||
//If is a draft invoice, load var to be able to add products
|
||||
$place = str_replace(")", "", str_replace("(PROV-POS".$_SESSION["takeposterminal"]."-", "", $obj->ref));
|
||||
print 'parent.place=\''.$place.'\'';
|
||||
print 'parent.place=\''.dol_escape_js($place).'\'';
|
||||
}
|
||||
print '});"';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue