added debuglevel syspref, to control error message verbosity after runtime error.

Signed-off-by: Chris Cormack <crc@liblime.com>
This commit is contained in:
Mason James 2007-09-27 18:50:35 -05:00 committed by Chris Cormack
parent 6bd75d133f
commit fa0d39a1f9
1 changed files with 10 additions and 0 deletions

View File

@ -263,6 +263,16 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion) ) {
type => 'Choice',
options => 'Calendar|Days'
},
{
uniquefieldrequired => 'variable',
variable => 'DebugLevel',
value => '0',
forceupdate => { 'explanation' => 1,
'type' => 1},
explanation => 'Set the level of error info sent to the browser. 0=none, 1=some, 2=most',
type => 'Choice',
options => '0|1|2'
},
{
uniquefieldrequired => 'variable',
variable => 'BorrowersTitles',