Bug 21891: (follow-up) Update database to set blank values to "default"
This patch adds a database update which will update any blank values of the XSLTDetailsDisplay system preference to "default." Although a blank value will still result in the default XSLT view, it's more consistent with the other XSLT preferences to use "default." To test, apply the patch and set the XSLTDetailsDisplay to a blank value. Run the database update. The value of the XSLTDetailsDisplay system preference should now be "default." Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
920ac202dc
commit
1fe39ed657
|
|
@ -0,0 +1,6 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbh->do( "UPDATE systempreferences SET value = 'default' WHERE variable = 'XSLTDetailsDisplay' AND value = ''" );
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 29891 - Remove non-XSLT detail view in the staff client)\n";
|
||||
}
|
||||
Loading…
Reference in New Issue