- Fix the correct stylevar for language codes
- Fixed another can_perform() product-based permissions check [search.php]
- More changes to syndicate.php to increase performance
+- Add checks to newreport.php and search.php to see if there are products, if there aren't, then throw a message about needing them to be setup
1.1.0 Beta 2
===============================
if ($_REQUEST['do'] == 'add')
{
+ if (!is_array($bugsys->datastore['product']))
+ {
+ $message->error(_('No products have been setup, therefore no bugs can be added.'));
+ }
+
$select['severity'] = construct_datastore_select('severity', 'severity', 'severityid', ($bugsys->in['severity'] ? $bugsys->in['severity'] : $bugsys->options['defaultseverity']));
$show['changestatus'] = ((can_perform('canchangestatus')) ? true : false);
if ($newsearch)
{
+ if (!is_array($bugsys->datastore['product']))
+ {
+ $message->error(_('No products are setup, therefore there can be no bugs and thus search cannot function.'));
+ }
+
$pcv_select = construct_pcv_select();
// -------------------------------------------------------------------