Yes, that's the fix. In fact I have no idea why I took that code out. I must have been playing around with something and forgot to put it back in correctly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It looks to me like there is a bug in the InvokeMethod.
I have an pp where several "static" method calls are used referencing a class, rather than an instantiated object.
I receive the following error:
Error resolving parameter ATTRIBUTES.OBJECT
The object OBJECT is not present in the scope named ATTRIBUTES. It is likely that you have misspelled the name of the object you are trying to access.
At line 58 in the code for this method we see:
// Define the 'self' and 'this' variable scope
self = attributes.object;
this = attributes.object;
These lines are not part of the conditional logic and execute regardless of the wheter the class was instantiated or called as a static class method.
Changing it to:
if ( isDefined("attributes.object") )
{
// Define the 'self' and 'this' variable scope
self = attributes.object;
this = attributes.object;
}
seems to fix the issue, however, I have not tested this thoroughly and have no idea what else this might break.
Thanks for the help,
ML
Yes, that's the fix. In fact I have no idea why I took that code out. I must have been playing around with something and forgot to put it back in correctly.