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 } ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Problem with Menu Settings’ is closed to new replies.