Skip to content
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

fix issue #65 : delete new questions in the target + issue #63 : porb… #66

Merged
merged 3 commits into from
Oct 16, 2017

Conversation

anoissi
Copy link

@anoissi anoissi commented Sep 26, 2017

…lem of Infinite loop

@anoissi anoissi requested a review from ahamdi September 26, 2017 10:54
log.info("Delete the category: '" + sub_category.getName() + "' because it's only founded here (delete-newcategories=true)");
deleteActivities(sub_category.getId(), null);
faqService.removeCategory(sub_category.getPath());
if (faqService.getCategoryById(sub_category.getId()) != null) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to check and throw an exception if the category is not removed, if there is a problem it will be catched in the catch block below.

@@ -183,6 +183,14 @@
<label class="checkbox uiCheckbox"><input class="option" type="checkbox" name="/answer/public_EXPORT_filter/with-subcategories"
ng-model="optionsModel['/answer/public_EXPORT_filter/with-subcategories']"/><span>With Sub categories</span></label>
</div>
<div ng-show="mode == 'import' || mode == 'synchronize'">
<label class="checkbox uiCheckbox"><input class="option" type="checkbox" name="/answer/public_IMPORT_filter/delete-newcategories"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

founded should be found, check it everywhere in the PR

Copy link
Member

@ahamdi ahamdi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@anoissi anoissi merged commit b760f76 into 2.3.x Oct 16, 2017
@azayati azayati deleted the fix/issue-65 branch January 31, 2020 00:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants