Browse Source
The pref value is used within a regex character class like [pref]. This means that we should precede hyphen with a backslash; the pipe char or dot does not need escaping. Test plan: Run new install or upgrade. Check pref value. Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>remotes/origin/19.11.x
3 changed files with 13 additions and 0 deletions
@ -0,0 +1,6 @@ |
|||
$DBversion = 'XXX'; # will be replaced by the RM |
|||
if( CheckVersion( $DBversion ) ) { |
|||
$dbh->do( q/INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES (?, ?, ?, ?, ?)/, undef, 'BarcodeSeparators','\s\r\n','','Splitting characters for barcodes','Free' ); |
|||
SetVersion( $DBversion ); |
|||
print "Upgrade to $DBversion done (Bug 22996 - Add pref BarcodeSeparators)\n"; |
|||
} |
Loading…
Reference in new issue