forked from Wavyzz/dolibarr
Try a fix for js syntax error
This commit is contained in:
@@ -234,8 +234,7 @@ $(document).ready(function() {
|
|||||||
$.post('<?php echo DOL_URL_ROOT; ?>/product/ajax/products.php', {
|
$.post('<?php echo DOL_URL_ROOT; ?>/product/ajax/products.php', {
|
||||||
'action': 'fetch',
|
'action': 'fetch',
|
||||||
'id': $(this).val(),
|
'id': $(this).val(),
|
||||||
'price_level': <?php echo $buyer->price_level; ?>
|
'price_level': <?php echo empty($buyer->price_level)?1:$buyer->price_level; ?>},
|
||||||
},
|
|
||||||
function(data) {
|
function(data) {
|
||||||
if (typeof data != 'undefined') {
|
if (typeof data != 'undefined') {
|
||||||
$('#product_ref').val(data.ref);
|
$('#product_ref').val(data.ref);
|
||||||
|
|||||||
Reference in New Issue
Block a user