Project

General

Profile

« Previous | Next » 

Revision ec5702db

Added by Marc Dequènes over 12 years ago

  • ID ec5702db731df3cca7bb8d434e48ac03dd2eec0a

[fix] display correct binary files count

View differences:

lib/ldap_shadows/display_helper.rb
str = field_name
str += " [#{key}]" if options[:handles]
if val[:value].nil?
if val[:value].nil?
str += " -> not set"
elsif val[:binary] and options[:skip_binary]
str += " -> #{val[:value].size} file(s) available"
nb_files = val[:multiple] ? val[:value].size : 1
str += " -> #{nb_files} file(s) available"
else
str += ": " + (val[:multiple] ?
val[:value].sort.collect{|v| LdapShadows::Manipulation.interpret_field_value(shadow, val[:syntax], v).to_s }.join(", ") :

Also available in: Unified diff