Bug 1843149: Bulk import doesn't retain user details correctly
This change does the following:
- Gets rid of the static cache that was created during run
of the first record which would only save the first user's info.
- when username is taken, append numbers and not underscores
- get rid of the warning using count on globals var that were not
previously set to array()s.
- respects the email users about their accounts option
behatnotneeded
Change-Id: I57b1c5e4d401028defda0c35bfc8347149094eb2
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 9dc7cbc6a3a6ecdaf132888c6d755a5af20496b7)
Reviewed: https:/ /reviews. mahara. org/10387 /git.mahara. org/mahara/ mahara/ commit/ 14bffe511334ae3 b9c2b5daf4cd266 87322319d5
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 19.04_STABLE
commit 14bffe511334ae3 b9c2b5daf4cd266 87322319d5
Author: Lisa Seeto <email address hidden>
Date: Thu Sep 12 12:08:59 2019 +1200
Bug 1843149: Bulk import doesn't retain user details correctly
This change does the following:
- Gets rid of the static cache that was created during run
of the first record which would only save the first user's info.
- when username is taken, append numbers and not underscores
- get rid of the warning using count on globals var that were not
previously set to array()s.
- respects the email users about their accounts option
behatnotneeded
Change-Id: I57b1c5e4d40102 8defda0c35bfc83 47149094eb2 af132888c6d755a 5af20496b7)
Signed-off-by: Lisa Seeto <email address hidden>
(cherry picked from commit 9dc7cbc6a3a6ecd