Default option is valid

Bevan - January 7, 2009 - 21:25
Project:Admin Role
Version:6.x-1.x-dev
Component:User interface
Category:bug report
Priority:normal
Assigned:Unassigned
Status:duplicate
Description

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.

AttachmentSize
Admin Role | csf.lcl_.png20.67 KB

#1

Dave Reid - November 25, 2009 - 03:34
Status:active» 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..

 
 

Drupal is a registered trademark of Dries Buytaert.