-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Attempting to install sample data twice #23633
Comments
Doesn't work because we have no way of tracking which sample data is installed. Even if we would track it (in a database), we wouldn't know if the installed sample data still is the original one or if it got deleted or whatever. The only error we can get is that the category already exists, for whatever reason (sample data already installed or category manually created with same name). And that we do. |
@Bakual The sample data derives from a plugin, so is it not possible to add custom field to each XML file, for example:
and upon installing the sample data, that parameter value be updated to |
And what happens if the user removes the sample data manually and wants to install it again? |
Don't get me wrong. I don't want to shoot this down. But it was discussed already when we introduced this module and we didn't find a solution that would work. |
@Bakual ah, I was not aware that is could be installed for different languages |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/23633 |
closed on Base of Comment above. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23633. |
In J4 users get only blog sample data. If the user tries to install again, an appropriate message appears as requested.
Hopefully we find a better solution for J5 |
Actually it is pretty easy to resolve |
I did the modification Brian proposed in #39216. Since you can install blog and multilang sampledata multiple times, I only added this to the testing sampledata. Closing this issue since we have a PR. |
Steps to reproduce the issue
Expected result
Either:
Actual result
A red alert:
System information (as much as possible)
Additional comments
The text was updated successfully, but these errors were encountered: