[Koha-bugs] [Bug 5462] Fix variable names so we dont break template::toolkit

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 13 00:19:30 CEST 2011


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=5462

--- Comment #18 from Chris Cormack <chris at bigballofwax.co.nz> 2011-05-12 22:19:30 UTC ---
Zeno, the message names have now been fixed in the database.

So that line should not be needed, ie

insert into `message_attributes`
(`message_attribute_id`, message_name, `takes_days`)
values
(1, 'Item_Due', 0),
(2, 'Advance_Notice', 1),
(4, 'Hold_Filled', 0),
(5, 'Item_Check_in', 0),
(6, 'Item_Checkout', 0);

$DBversion = "3.03.00.051";
if (C4::Context->preference("Version") < TransformToNum($DBversion)) {
    print "Upgrade to $DBversion done (Remove spaces and dashes from
message_attribute names)\n";
    $dbh->do("UPDATE message_attributes SET message_name = 'Item_Due' WHERE
message_name='Item Due'");
    $dbh->do("UPDATE message_attributes SET message_name = 'Advance_Notice'
WHERE message_name='Advance Notice'");
    $dbh->do("UPDATE message_attributes SET message_name = 'Hold_Filled' WHERE
message_name='Hold Filled'");
    $dbh->do("UPDATE message_attributes SET message_name = 'Item_Check_in'
WHERE message_name='Item Check-in'");
    $dbh->do("UPDATE message_attributes SET message_name = 'Item_Checkout'
WHERE message_name='Item Checkout'");
    SetVersion ($DBversion);
}

So i think we can mark this resolved fixed ... do you agree?

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA Contact for the bug.


More information about the Koha-bugs mailing list