Commit 2f2c2fc
Dolicraft
fix Dolibarr#33642 set user name from company for corporation member
User::create_from_member copied lastname/firstname from the member, but a
corporation member (morphy 'mor') has neither: its name is in the company
field. The created user got a blank name and an empty built login. Use the
company field as the lastname in that case so the user name and login are
populated.
Signed-off-by: Dolicraft <contact@dolicraft.com>1 parent fad9bf5 commit 2f2c2fc
1 file changed
Lines changed: 11 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | | - | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
1739 | 1746 | | |
1740 | 1747 | | |
1741 | 1748 | | |
| |||
1752 | 1759 | | |
1753 | 1760 | | |
1754 | 1761 | | |
1755 | | - | |
| 1762 | + | |
| 1763 | + | |
1756 | 1764 | | |
1757 | 1765 | | |
1758 | 1766 | | |
| |||
0 commit comments