Skip to content

Commit

Permalink
Add home validation
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Nov 10, 2021
1 parent b3a6caa commit 2b3206d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/include/users/dialogs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1418,6 +1418,12 @@ def EditUserDialog(what)
focus_tab.call(current, :home)
next
end
if new_home.empty?
Report.Error(_("Home cannot be empty."))
UI.ChangeWidget(Id(:home), :Value, home)
focus_tab.call(current, :home)
next
end
failed = false
begin
error_map = Users.CheckHomeUI(new_i_uid, new_home, ui_map)
Expand Down

0 comments on commit 2b3206d

Please sign in to comment.