Name
global.DeleteRelationshipAjax
Description
Server side utilities to support delete relationship UI.
Script
var DeleteRelationshipAjax = Class.create();
DeleteRelationshipAjax.prototype = Object.extendsObject(AbstractAjaxProcessor, {
process: function() {
if (this.getType() == "deleteRelationship") {
this.deleteRelationship(this.getValue(), this.getParameter("sysparm_changeset"));
}
},
deleteRelationship: function(item_id, task_id) {
var gr = new GlideRecordSecure("cmdb_rel_ci");
if (gr.get(item_id) && gr.canDelete()) {
var base = new SNC.CMDBUtil();
base.baselineProposedChangesGenDeleteRelation(gr, task_id);
}
},
type: "DeleteRelationshipAjax"
});
Sys ID
cf037916535321007c949096a11c0864