Bug 16401: System preference staffClientBaseURL hardcoded to 'http://'
[koha.git] / installer / data / mysql / atomicupdate / bug_16401.perl
1 $DBversion = 'XXX';  # will be replaced by the RM
2 if( CheckVersion( $DBversion ) ) {
3     $dbh->do( "UPDATE systempreferences SET value = CONCAT('http://', value) WHERE variable = 'staffClientBaseURL' AND value NOT LIKE 'http%'" );
4
5     # Always end with this (adjust the bug info)
6     SetVersion( $DBversion );
7     print "Upgrade to $DBversion done (Bug 16401 - fix potentialy bad set staffClientBaseURL preference)\n";
8 }