diff options
author | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-05 15:00:25 +0100 |
---|---|---|
committer | Tomasz Maczukin <tomasz@maczukin.pl> | 2016-01-05 15:00:25 +0100 |
commit | 0a21731e3bc400ceb9898c9efbc2a186f5348e09 (patch) | |
tree | 425b9c0f88633f3d69400d77667284b42d3ba663 /lib/api/helpers.rb | |
parent | f60bceb988bd629f9adecc070ef5579d264f27c6 (diff) | |
download | gitlab-ce-0a21731e3bc400ceb9898c9efbc2a186f5348e09.tar.gz |
Add ci fields in project create/update feature API
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb index a4df810e755..563c12e4f74 100644 --- a/lib/api/helpers.rb +++ b/lib/api/helpers.rb @@ -157,7 +157,7 @@ module API def attributes_for_keys(keys, custom_params = nil) attrs = {} keys.each do |key| - if params[key].present? or (params.has_key?(key) and params[key] == false) + if params[key].present? or (params.has_key?(key) and (params[key].empty? or params[key] == false)) attrs[key] = params[key] end end |