DD-72 : Fix display of stock number on listing with no associated version folder

meow-7.2.2
Merov Linden 2014-04-21 17:10:45 -07:00
parent cda6ac9e9b
commit 40a51eb94d
1 changed files with 5 additions and 0 deletions

View File

@ -845,6 +845,11 @@ S32 compute_stock_count(LLUUID cat_uuid)
// If there is a version folder, the stock value for the listing is the version folder stock
return compute_stock_count(version_folder_uuid);
}
else
{
// If there's no version folder associated, the notion of stock count has no meaning
return -1;
}
}
else if (depth == 2)
{