VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: ralfakerkhoff on June 28, 2008, 21:41:59 PM

Title: Download Feature
Post by: ralfakerkhoff on June 28, 2008, 21:41:59 PM
Joomla 1.53 and VM 1.11

Hi,
just noticed the following bug:
The checkbox "Keep Product Stock Level on Purchase?" in the download tab is and keeps always checked.
If you uncheck it and save, the VM configuration file is updated correctly.
Because it stays checked, and you change something in the VM configuration, the "Keep Product Stock Level on Purchase?" is always be updated too and gets the value of 1 in the virtuemart.cfg.php.
Drives me crazy this weekend.
Maybe it is an idea to change line 1156 in admin.show_cfg.php to:
               <input type="checkbox" name="conf_VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL" class="inputbox" <?php if (VM_DOWNLOADABLE_PRODUCTS_KEEP_STOCKLEVEL == 1) echo "checked=\"checked\""; ?> value="1" />

This works for me....