glide.ui.disable_attachment_view Not Working

Nia McCash
Mega Sage
Mega Sage

According to Hide the attachment [view] link, I should be able to add a system property of glide.ui.disable_attachment_view in order to hide the [view] link on attachments but this isn't working for me.

glide.ui.disable_attachment_view.jpg

I added the property as instructed but it doesn't seem to be working as expected.   I can still see the [view] link.

view_link.jpg

I feel like I'm missing something very simple but I don't know what.   Why is the glide.ui.disable_attachment_view not working for me?

1 ACCEPTED SOLUTION

Nia McCash
Mega Sage
Mega Sage

So I'm not sure how everyone else got this to work but I had to open a ticket on HI and support person confirmed that this is a problem.   Notes from support:


After further testing, I found this to be a PRB. I was initially confused because when you first add an attachment the [view] link is not present. I noticed after the record is saved, the link reappears. I was able to reproduce this in test instances for both Geneva and Helsinki.


View solution in original post

12 REPLIES 12

Thanks Nia for the update. Can you do cache.do once and check.


I did a cache.do and tested again using a private/incognito window in a brand new login session - still doesn't work.



I have tested this on two different instances (my company's dev instance and my personal developer instance). However, I am doing the same actions on both so perhaps I'm simply replicating something wrong or missing the same action on both instances.


Which release are you on?


Hi Nia,



Let me try this on my instance and get back to you.


Which release is your instance on?


I've now tried this on two Geneva instances (patch 4 and patch 6) and one Helsinki Patch 2 instance.



I noticed that in the attachment_entry UI Macro on lines 20-22, the variable jvar_show_link is set within a conditional but it is not set anywhere outside of the conditional.



    <j:if test="${jvar_edge_invalid == 'true' || gs.getProperty('glide.ui.disable_attachment_view') == 'true'}">


            <j:set var="jvar_show_link" value="false" />


    </j:if>



I believe this is the problem but I'm not certain since abhi_r says that it works for him.