mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-25 02:34:17 +00:00
Order drop-down list of principals by displayname.
This commit is contained in:
parent
eea5602c4c
commit
ef4a55a81b
@ -359,7 +359,7 @@ if ( $editor->Available() ) {
|
|||||||
|
|
||||||
$grantrow = new Editor("Grants", "grants");
|
$grantrow = new Editor("Grants", "grants");
|
||||||
$grantrow->SetSubmitName( 'savegrantrow' );
|
$grantrow->SetSubmitName( 'savegrantrow' );
|
||||||
$grantrow->SetLookup( 'to_principal', 'SELECT principal_id, displayname FROM dav_principal WHERE principal_id NOT IN (SELECT member_id FROM group_member WHERE group_id = '.$id.')' );
|
$grantrow->SetLookup( 'to_principal', 'SELECT principal_id, displayname FROM dav_principal WHERE principal_id NOT IN (SELECT member_id FROM group_member WHERE group_id = '.$id.') ORDER BY displayname' );
|
||||||
if ( $can_write_collection ) {
|
if ( $can_write_collection ) {
|
||||||
if ( $grantrow->IsSubmit() ) {
|
if ( $grantrow->IsSubmit() ) {
|
||||||
$_POST['by_collection'] = $id;
|
$_POST['by_collection'] = $id;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user