Notifications

1065 views

Description

If you have a read ACL against a table that uses a "gr" variable for a glide record in the ACL script when you attach an attachment to that record type the attachment name will appear as "null" until the record is refreshed.

Steps to Reproduce

Workaround

Only use the gr GlideRecord variable inside a function, for example:

if (typeof g_approval_form_request != "undefined" && g_approval_form_request == true)
answer = true;
else
answer = getAnswer();

function getAnswer() {
var gr = new GlideRecord("sysapproval_approver");
gr.addQuery("sysapproval", current.sys_id);
gr.addQuery("approver", gs.getUserID());
gr.setLimit(1);
gr.query();
return gr.hasNext();
}


Related Problem: PRB591831

Seen In

Calgary Patch 2 Hot Fix 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-08-03 08:19:39
Published:2015-01-19