forked from zammad/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes zammad#5362 - Fix behaviour of array values in CSV export/import.
Co-authored-by: Florian Liebe <[email protected]>
- Loading branch information
1 parent
9d15959
commit 0b11fbf
Showing
4 changed files
with
15 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
id;name;members;active | ||
;organization-member-import1;[email protected] | ||
;organization-member-import2;[email protected];false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -197,7 +197,9 @@ | |
|
||
context 'with roles and fixed params' do | ||
let(:result) { User.csv_import(**params, fixed_params: { note: 'some note' }) } | ||
let(:csv_string) { "login;firstname;lastname;email;roles;\nuser-role-import1;firstname-role-import1;lastname-role-import1;[email protected];Customer;\nuser-role-import2;firstname-role-import2;lastname-role-import2;[email protected];Agent\n;;;;Admin" } | ||
let(:csv_string) do | ||
"login;firstname;lastname;email;roles;\nuser-role-import1;firstname-role-import1;lastname-role-import1;[email protected];Customer;\nuser-role-import2;firstname-role-import2;lastname-role-import2;[email protected];Agent~~~Admin" | ||
end | ||
|
||
context 'with :try' do | ||
it 'returns success' do | ||
|