Mailinglist Archive: yast-commit (2114 mails)

< Previous Next >
[yast-commit] <rest-service> network : check for nil
  • From: Jiri Suchomel <jsuchome@xxxxxxx>
  • Date: Mon, 14 Sep 2009 16:40:57 +0200
  • Message-id: <E1Mo1uH-0001rT-9W@xxxxxxxxxxxxxxxx>
ref: refs/heads/network
commit b96c06176dab5790ae1cb0d17635b2c7f44302a9
Author: Jiri Suchomel <jsuchome@xxxxxxx>
Date: Mon Sep 14 16:40:27 2009 +0200

check for nil
---
.../app/controllers/administrator_controller.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/plugins/administrator/app/controllers/administrator_controller.rb
b/plugins/administrator/app/controllers/administrator_controller.rb
index 21e560d..be54d65 100644
--- a/plugins/administrator/app/controllers/administrator_controller.rb
+++ b/plugins/administrator/app/controllers/administrator_controller.rb
@@ -33,7 +33,7 @@ class AdministratorController < ApplicationController
@admin.save_password(data[:password])
end

- if data.has_key?(:aliases)
+ if data.has_key?(:aliases) && !data[:aliases].nil?
begin
@admin.save_aliases(data[:aliases])
rescue Exception => e
--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages