diff --git a/resources/inc/class.ui_resources.inc.php b/resources/inc/class.ui_resources.inc.php index 7f484f3d6f..e6f129fdbd 100755 --- a/resources/inc/class.ui_resources.inc.php +++ b/resources/inc/class.ui_resources.inc.php @@ -350,7 +350,7 @@ class ui_resources function addOption(label,value,button_id,useable) { - quantity = document.getElementById(button_id+'[default_qty]').value; + var quantity = document.getElementById(button_id+'[default_qty]').value; value = value+':'+quantity; if(quantity>useable) { alert('".lang('You chose more resources than available')."');