From b83567cee5078460096195ab201af54aabde6e5f Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 18 May 2012 16:50:39 +0200 Subject: [PATCH] fix title attribute update --- ipasserelle-base.spec | 2 +- root/etc/e-smith/events/actions/ldap-update-info | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ipasserelle-base.spec b/ipasserelle-base.spec index 99123ef..1e7835e 100644 --- a/ipasserelle-base.spec +++ b/ipasserelle-base.spec @@ -1,5 +1,5 @@ %define version 0.2.6 -%define release 1.beta1 +%define release 1.beta2 %define name ipasserelle-base diff --git a/root/etc/e-smith/events/actions/ldap-update-info b/root/etc/e-smith/events/actions/ldap-update-info index e2a514a..1cfd44c 100644 --- a/root/etc/e-smith/events/actions/ldap-update-info +++ b/root/etc/e-smith/events/actions/ldap-update-info @@ -77,8 +77,9 @@ foreach my $acc (@accounts){ @mobile = ($mobile) unless ($mobile eq ''); @extension = ($extension) unless ($extension eq ''); @fax = ($fax) unless ($fax eq ''); - @titles = qw($function1 $function2 $function3 $function4) - unless ($function1 eq '' && $function2 eq '' && $function3 eq '' && $function4 eq ''); + foreach ($function1, $function2, $function3, $function4){ + push @titles, $_ if ($_ ne ''); + } @dshell = ($dshell) unless ($dshell eq ''); @preferredemail = ($preferredemail) unless ($preferredemail eq ''); @web = ($web) unless ($web eq '');