Submitting the default option of -- Please Select One -- on user/admin/adminrole is not an error (See attached screenshot). Make $form['adminrole_adminrole'] required and check adminrole_adminrole > 0 in a validation callback.

CommentFileSizeAuthor
Admin Role | csf.lcl_.png20.67 KBBevan

Comments

dave reid’s picture

Status: Active » Closed (duplicate)

Should be using 'Disabled' as the 0-valued option to sync with the D7 functionality. Will be fixed with #615336: Admin Role - Permissions and Sync module with D7-implementation for upgrading ease..