Enhancement #1853

Directory: default user Organization Contact props

Added by Davide Principi over 8 years ago. Updated about 8 years ago.

Status:CLOSEDStart date:04/29/2013
Priority:NormalDue date:04/29/2013
Assignee:-% Done:

100%

Category:nethserver-directory
Target version:v6.4-beta1
Resolution: NEEDINFO:

Description

When an Organization Contact filed is changed, its value must be reflected into any user record that is not overriding it.

This allows to change a field (i.e. Company) to all users using the default value in the same event.

Associated revisions

Revision 5f674407
Added by Davide Principi over 8 years ago

User Modify UI module: user contact props override OrganizationContact props. Refs #1853

Revision 7b9415a3
Added by Davide Principi over 8 years ago

nethserver-directory-migrate action: import user contact infos only if differ from defaults, defined by OrganizationContact key. Refs #1853

History

#1 Updated by Davide Principi over 8 years ago

  • Due date set to 04/29/2013
  • Status changed from NEW to ON_DEV
  • Assignee set to Davide Principi
  • Start date set to 04/29/2013
  • % Done changed from 0 to 30

#2 Updated by Davide Principi over 8 years ago

  • Status changed from ON_DEV to ON_QA
  • % Done changed from 30 to 80

If an user contact prop has non-empty value, it overrides the default from OrganizationContact key.

#3 Updated by Davide Principi over 8 years ago

To clean up all user contact props, resetting default OrganizationContact defaults:


for U in `db accounts keys`; do
   if [ "`db accounts gettype $U`" != 'user' ]; then
      continue
   fi
   db accounts delprop $U City Company Department Dept PhoneNumber Phone Street
done

#4 Updated by Davide Principi over 8 years ago

  • Status changed from ON_QA to MODIFIED
  • % Done changed from 80 to 100

#5 Updated by Davide Principi about 8 years ago

  • Status changed from MODIFIED to CLOSED

Also available in: Atom PDF