2
0
forked from Wavyzz/dolibarr

Try a fix for js syntax error

This commit is contained in:
Laurent Destailleur
2012-08-28 22:05:40 +02:00
parent 4108e48d5c
commit 32ca894952

View File

@@ -234,8 +234,7 @@ $(document).ready(function() {
$.post('<?php echo DOL_URL_ROOT; ?>/product/ajax/products.php', {
'action': 'fetch',
'id': $(this).val(),
'price_level': <?php echo $buyer->price_level; ?>
},
'price_level': <?php echo empty($buyer->price_level)?1:$buyer->price_level; ?>},
function(data) {
if (typeof data != 'undefined') {
$('#product_ref').val(data.ref);