Hotfixes

Unifi can be patched between releases by using a special Script Include called hotfix. This page contains any hotfixes that have been made for this version. Follow the instructions to apply them.

If you find a bug in Unifi we may issue a hotfix so you can get the features you need without having to upgrade.

Unifi has a Script Include called hotfix. Simply replace the script in the hotfix Script Include with the one shown below and you will instantly have access to the fixes.

These hotfixes will be shipped as real fixes with the next version of Unifi, so make sure you have the correct hotfix for your version.

/**
* Executes a child function corresponding to the object's type property.
* The object is passed to the child function so methods and properties can be overridden.
*
* @param {Object} obj The full class object to be patched.
*/
function hotfix(obj) {
var type = typeof obj === 'function' ? obj.prototype.type : obj.type;
if (type && typeof hotfix[type] === 'function') {
hotfix[type](obj);
}
}
hotfix.version = '3.0.3.1';
hotfix.Message = function (Message) {
Message.prototype.processSourceToStage = function processSourceToStage(source, stage, transaction, bond) {
var script = this.getMessageScript('Source to Stage (Outbound)');
var result = this.evaluateScript(script, 'script', {
source: source,
stage: stage,
transaction: transaction,
bond: bond
});
// Turns out GlideScopedEvaluator modifies object references to GlideRecord
// which breaks our Target caching. We can fix this here by resetting the record.
source.$model.setRecord(source);
return result;
};
};