[POS app] Allow empty string for product description (#1010)

fix #1008
This commit is contained in:
Umar Bolatov
2019-09-03 21:07:09 -07:00
committed by Nicolas Dorier
parent 7208e63155
commit a4b61f8aab
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ $(document).ready(function(){
// Only continue if price and title is provided
if (obj.price && obj.title) {
if (description) {
if (description != null) {
obj.description = products.escape(description);
}
if (image) {

View File

@@ -68,7 +68,7 @@ Products.prototype.loadFromTemplate = function() {
'title': title,
'price': price,
'image': image || null,
'description': description || null,
'description': description || '',
'custom': Boolean(custom),
'inventory': isNaN(inventory)? null: inventory
});