Author: jsuchome Date: Tue Aug 26 12:53:05 2008 New Revision: 50365 URL: http://svn.opensuse.org/viewcvs/yast?rev=50365&view=rev Log: correctly show pwdGraceAuthNLimit, do not select tree item on opening (bnc#418318) Modified: trunk/ldap-client/src/LdapPopup.ycp Modified: trunk/ldap-client/src/LdapPopup.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ldap-client/src/LdapPopup.ycp?rev=50365&r1=50364&r2=50365&view=diff ============================================================================== --- trunk/ldap-client/src/LdapPopup.ycp (original) +++ trunk/ldap-client/src/LdapPopup.ycp Tue Aug 26 12:53:05 2008 @@ -42,7 +42,6 @@ `HBox ( `HSpacing (), `ReplacePoint (`id (`reptree), `Tree (`id(`tree), root_dn, [])), - `ReplacePoint (`id (`repbuttons), `Empty ()), `HSpacing () ), `HBox ( @@ -64,7 +63,7 @@ list<term> items = []; list<string> out = (list<string>) SCR::Read (.ldap.search, $[ "base_dn" : root_dn, - "scope" : 1, + "scope" : root_dn != "" ? 0 : 1, "dn_only" : true, "not_found_ok" : true ] ); @@ -81,6 +80,8 @@ UI::ReplaceWidget (`id (`reptree), textmode ? `Tree (`id(`tree), root_dn, items) : `Tree (`id(`tree), `opt(`notify), root_dn, items)); + // no item is selected + UI::ChangeWidget (`tree, `CurrentItem, nil); } else if (root_dn == "") { @@ -754,7 +755,9 @@ `VSpacing (0.2), `IntField (`id ("pwdGraceAuthNLimit"), // IntField label - _("Allowed Uses of an Expired Password"), 0, max, 0) + _("Allowed Uses of an Expired Password"), 0, max, + tointeger (ppolicy["pwdGraceAuthNLimit"]:"0") + ) ), `HSpacing (0.5))); UI::ReplaceWidget (`tabContents, tab_cont); return; -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org