Loading...
 
Skip to main content

Features / Usability


type g survey check boxes not visible for non-admin

posts: 103 Wales

I've been puzzling over this one for a while.

I have a survey question (type g) "multiple choices from thumbnails from a file gallery" which displays correctly with admin privaledges. However, a registered (non-admin) user cannot see the checkboxes - the images themselves (and all other survey questions) display correctly.

I guess this must be a permissions problem, but I can't work out which.

Any ideas appreciated. tiki 5.1

posts: 103 Wales

Problem persists after upgrade to 6.1

:-(


posts: 215

There appears to be a problem with this line of code in templates/browse_file_gallery.tpl

Copy to clipboard
{if $gal_info.show_checked neq 'n' and $tiki_p_admin_file_galleries eq 'y'}

If you change the "and" to an "or", then it will display the check box for non admins.

Copy to clipboard
{if $gal_info.show_checked neq 'n' or $tiki_p_admin_file_galleries eq 'y'}

This is in Tiki 9.9svn, I have not tested this in any other versions, or checked newer versions to see if the problem has been fixed.
I am not sure how to test for any other problems changing the "and" to "or" might create.
Tom