This repository has been archived by the owner on Dec 27, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(TB Export) fix csv exports twig definitions
Change-Id: I5671fe7ec2ccfdd192612567a60a566474057d8b Reviewed-on: http://gerrit.tine20.com/customers/18931 Tested-by: Jenkins CI (http://ci.tine20.com/) <tine20-jenkins@metaways.de> Reviewed-by: Paul Mehrer <p.mehrer@metaways.de>
- Loading branch information
Showing
5 changed files
with
65 additions
and
5 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
29 changes: 29 additions & 0 deletions
29
tests/tine20/Addressbook/Export/definitions/adb_csv_test_twig.xml
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<config> | ||
<model>Addressbook_Model_Contact</model> | ||
<name>adb_csv_test</name> | ||
<type>export</type> | ||
<plugin>Tinebase_Export_Csv</plugin> | ||
<sort> | ||
<field>n_given</field> | ||
<direction>ASC</direction> | ||
</sort> | ||
<header>0</header> | ||
<delimiter>	</delimiter> | ||
<enclosure>"</enclosure> | ||
<columns> | ||
<column> | ||
<identifier>n_given</identifier> | ||
<header>Given Name</header> | ||
</column> | ||
<column> | ||
<identifier>email</identifier> | ||
<header>Email address</header> | ||
</column> | ||
<column> | ||
<identifier>tel_home</identifier> | ||
<header>telefone home</header> | ||
<twig>{{ '%010d'|format(record.tel_home) }}</twig> | ||
</column> | ||
</columns> | ||
</config> |
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
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