From 32ca894952fd43e37bd5c88a62fe069dff766c4c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 28 Aug 2012 22:05:40 +0200 Subject: [PATCH] Try a fix for js syntax error --- htdocs/core/tpl/objectline_add.tpl.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/tpl/objectline_add.tpl.php b/htdocs/core/tpl/objectline_add.tpl.php index 72e647f3da1..2fdf04d2403 100644 --- a/htdocs/core/tpl/objectline_add.tpl.php +++ b/htdocs/core/tpl/objectline_add.tpl.php @@ -234,8 +234,7 @@ $(document).ready(function() { $.post('/product/ajax/products.php', { 'action': 'fetch', 'id': $(this).val(), - 'price_level': price_level; ?> - }, + 'price_level': price_level)?1:$buyer->price_level; ?>}, function(data) { if (typeof data != 'undefined') { $('#product_ref').val(data.ref);