Cannot reproduce xf-addon:export only exports new entries, deletes old ones

vbresults

Well-known member
Affected version
2.0
If I have Template A and Template B in my add-on, and decide to add Template C in a later version, when I run xf-addon:export, _data/templates.xml only contains template C.
 
Pretty sure this report isn't accurate. A lot of add-ons get exported and even we regularly export add-on data ourselves for XF and our add-ons.

We would have come across this ourselves and had many reports of it otherwise.

Can you please reconfirm the issue and verify the reproduction steps?

To be clear, add-on data is exported from the contents of the database (so, not the file system contents) and templates specifically are only included if they are assigned to the add-on and in the master style (style_id 0 only).
 
@Chris D Sorry, I just saw this, all I do is:

1. Create an add-on with a template
2. Change version ID via addon.json
3. Upgrade add-on
4. Add 2nd template
5. Run 'php cmd.php xf-addon:export <AddonId>'
6. 1st template is gone

I always and have only created templates in the master style during add-on development.
 
What if you change the steps to:

1. Create add-on with template
2. Change version ID with php cmd.php xf-addon:bump-version <AddonId> (no need to upgrade)
3. Add 2nd template
5. Run export
 
Back
Top Bottom