Bug 5610 Script to force borr transport defaults messaging
authorFrédéric Demians <f.demians@tamil.fr>
Thu, 17 Mar 2011 01:02:09 +0000 (21:02 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Mon, 21 Mar 2011 08:07:05 +0000 (21:07 +1300)
commit662175571e51bad673911d6568ac741e28a2eaae
treeb8194efecad4c2d2e194e785455538d1b0f4f9d0
parente1654e1aa148303fde0d30360f533be26b3029d3
Bug 5610 Script to force borr transport defaults messaging

If the EnhancedMessagingPreferences syspref is enabled after borrowers
have been created in the DB, those borrowers won't have messaging
transport preferences default values as defined for their borrower
category, even no transport preferences at all. So you would have to
modify each borrower one by one if you would like to send them 'Hold
Filled' notice for example.

I propose this script to create transport preferences for all existing
borrowers and set them to default values defined for the category they
belong to.

[DOC] Should be documented somewhere.

Signed-off-by: Jared Camins-Esakov <jcamins@bywatersolutions.com>
Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
misc/maintenance/borrowers-force-messaging-defaults [new file with mode: 0755]