Skip to content

Commit d9645e5

Browse files
authored
Merge pull request #806 from boxwise/show-message-if-no-stockroom-locations
Display message when no stockroom locations available
2 parents 6a093de + 05c1799 commit d9645e5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/container-stock.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,5 +76,6 @@
7676
$cmsmain->assign('listdata', $listdata);
7777
$cmsmain->assign('include', 'cms_list.tpl');
7878
} else {
79-
throw new Exception('There is no Stockroom warehouse location defined! Ask your coordinator to correct this!');
79+
$cmsmain->assign('list_info_text', 'There is no Stockroom warehouse location defined! Ask your coordinator to correct this.');
80+
$cmsmain->assign('include', 'cms_list.tpl');
8081
}

0 commit comments

Comments
 (0)