[fix] item attribute validation, fixes #5308

This commit is contained in:
Rushabh Mehta
2016-06-02 17:49:16 +05:30
parent 675f9c6e6e
commit aed79e993f
4 changed files with 34 additions and 23 deletions

View File

@@ -65,7 +65,7 @@ erpnext.stock.ItemDashboard = Class.extend({
this.max_count = this.max_count;
// show more button
if(data.length===21) {
if(data && data.length===21) {
this.content.find('.more').removeClass('hidden');
// remove the last element