Skip to content

Commit a3f9882

Browse files
committed
Display message when no stockroom locations available
1 parent 6a093de commit a3f9882

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('message', '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)