Bug 7180: (follow-up) ensure that the default quantity is 1

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Jonathan Druart 2013-07-15 10:05:06 +02:00 committed by Galen Charlton
parent 59bd868c98
commit 4924f7bd59

View file

@ -182,7 +182,7 @@
</li>
<li class="quantity">
<label for="quantity_record_[% biblio.import_record_id %]" class="required">Quantity: </label>
<input id="quantity_record_[% biblio.import_record_id %]" type="text" value="[% biblio.quantity %]" name="quantity" />
<input id="quantity_record_[% biblio.import_record_id %]" type="text" value="[% biblio.quantity.length ? biblio.quantity : 1 %]" name="quantity" />
</li>
<li class="price">
<label for="price_record_[% biblio.import_record_id %]">Price: </label>