Title: Problem with Menu Settings
Last modified: September 1, 2016

---

# Problem with Menu Settings

 *  [dymitar](https://wordpress.org/support/users/dymitar/)
 * (@dymitar)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/)
 * When selecting “Logged In users” and checking more than one role the POST contains
   only one of the values and sets only one of the roles.
    Changing the code in 
   um-navmenu-walker-edit.php to set the names of the checkboxes with explicit index
   solves the problem. For example the name is menu-item-um_nav_roles805[] for all
   checkboxes. Changing it to menu-item-um_nav_roles805[1], menu-item-um_nav_roles805[
   2]… for each role makes the settings work without problem. The change i did is:
 *     ```
       <?php  $i=0; foreach($ultimatemember->query->get_roles() as $role_id => $role) { ?>
       <label><input type="checkbox" name="<?php $i++;echo $role_name."[".$i."]"; ?>" value="<?php echo $role_id; ?>" <?php if (  ( is_array($value) && in_array($role_id, $value ) ) || ( isset($value) && $role_id == $value ) ) echo 'checked="checked"'; ?> /> <?php echo $role; ?></label>  
       <?php } ?>
       ```
   
 * [https://wordpress.org/plugins/ultimate-member/](https://wordpress.org/plugins/ultimate-member/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Ultimate Member](https://wordpress.org/support/users/ultimatemember/)
 * (@ultimatemember)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/#post-7505855)
 * Hi,
 * We have fixed this issue and will be pushing an update tomorrow. Pre-release 
   version is here:
 * [https://github.com/ultimatemember/ultimatemember/releases](https://github.com/ultimatemember/ultimatemember/releases)
 * Thanks
 *  Thread Starter [dymitar](https://wordpress.org/support/users/dymitar/)
 * (@dymitar)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/#post-7506019)
 * you are awesome
    thank you
 *  Plugin Contributor [Champ Camba](https://wordpress.org/support/users/champsupertramp/)
 * (@champsupertramp)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/#post-7506055)
 * Hi,
 * We’ve released version 1.3.60 which includes fixes for this issue.
 * Let us know if the update resolves the issue.
 * Regards,
 *  [mirnest](https://wordpress.org/support/users/mirnest/)
 * (@mirnest)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/#post-7506208)
 * Hi,
    I just ran into this issue. I’m running 1.3.66, which should have the changes
   from 1.3.60 but it seems as if it doesn’t work for me.
 * I’ve also tried dymitar ‘quickfix’ but instead of setting the selected roles,
   it doesn’t pass any of them (all unchecked after save). Is there any other solutions
   to this?
 * Best Regards

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with Menu Settings’ is closed to new replies.

 * ![](https://ps.w.org/ultimate-member/assets/icon-256x256.png?rev=3160947)
 * [Ultimate Member – User Profile, Registration, Login, Member Directory, Content Restriction & Membership Plugin](https://wordpress.org/plugins/ultimate-member/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ultimate-member/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ultimate-member/)
 * [Active Topics](https://wordpress.org/support/plugin/ultimate-member/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ultimate-member/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ultimate-member/reviews/)

 * 4 replies
 * 4 participants
 * Last reply from: [mirnest](https://wordpress.org/support/users/mirnest/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/problem-with-menu-settings/#post-7506208)
 * Status: not resolved