Ernst wrote:This plugin was great. Even got it going in 7.02, But the minute we put in Service Pack it got an error. Possibly as the Manual Back Order release function was updated to a save/ Activate function.
No idea how to fix this error, as the message is hard to decipher. Can anybody help with why this plugin wont work in 7.02, with service pack2.
Plugin and error message attached.
I've edited my post above to include a modified version of the original plugin to be compatible with 7.2 SR2.
The problem was simply the RangeAdded event used to have no parameters - but in SR2 we added sender and eventargs as parameters - this was part of the work done in
DEV-7092 and
DEV-7093 - but was not necessary - it was simply a consistency thing where we try to make sure all our events pass the sender and eventargs so not only are event signatures consistent, but plugins and applications can have a chance of doing useful things with those events without fancy parameter injection via delegates or other such tricksies.
In essence, what needed to change was this one line:
- Code: Select all
public void ManualBOBatch_BatchLines_RangeAdded()
was changed to:
- Code: Select all
public void ManualBOBatch_BatchLines_RangeAdded(object sender, System.EventArgs e)
But I took the opportunity to also remove the reference to the Manager.Instance property - because whilst it's ok to use it in 7.2 SR2, we'll remove it one day.