Skip to content

Fix group and user selector

Mike KOTA requested to merge kotamike55/tiki:Fix-Group-and-User-selector into master

You can't pick a user until you pick a group. There should be some sort of warning if you try. A bubble? A pop up? Or some greyed out text "pick group first". At the same time it was necessary to fix a problem with a message that was to be displayed according to the standards of warning of an error and to make disappear the groups containing no user. that's how I started first by looking for the values in the groups to allow me to exclude all groups with empty content but seen Marc asked me to exclude that the value "Anonymous So I updated the code for this proposal, to do this, I added to line 7,8 and 9 a piece of code allowing me to remove by a comparison the value in the variable data.groups\[ix\] equal to "Anonymous" which clearly shows us all the values except the anonymous group . Code : if (data.groups[ix] !='Anonymous')} <option value="{data.groups\[ix\]|escape}" {if (in_array(data.groups[ix], data.selected_groups))}selected{/if}>{data.groups[ix]} {/if} Test link: http://trunk.lab.suite.wiki/tiki-view_tracker.php?trackerId=4

Merge request reports