added debuglevel syspref, to control error message verbosity after runtime error.
authorMason James <mtj@arwen.metavore.com>
Thu, 27 Sep 2007 23:50:35 +0000 (18:50 -0500)
committerChris Cormack <crc@liblime.com>
Fri, 28 Sep 2007 01:25:10 +0000 (20:25 -0500)
Signed-off-by: Chris Cormack <crc@liblime.com>
updater/updatedatabase

index 98ccdee..eab08cf 100755 (executable)
@@ -265,6 +265,16 @@ if (C4::Context->preference("Version") < TransformToNum($DBversion) ) {
             },
             {
                 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',
                 value               => 'Mr|Mrs|Miss|Ms',
                 forceupdate         => { 'explanation' => 1,