Add missing form validation on presetting QU id stock (#704)

This commit is contained in:
Mik- 2020-04-07 16:37:30 +02:00 committed by GitHub
parent 6b75decd4a
commit a6dd794ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -431,5 +431,6 @@ $('#qu_id_purchase').blur(function(e)
var QuIdPurchase = $('#qu_id_purchase');
if (QuIdStock[0].selectedIndex === 0 && QuIdPurchase[0].selectedIndex !== 0) {
QuIdStock[0].selectedIndex = QuIdPurchase[0].selectedIndex;
Grocy.FrontendHelpers.ValidateForm('product-form');
}
});