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

#2569 Fixed deleting non existent user profile #2575

Merged

Conversation

Patrykb0802
Copy link
Contributor

  • Added condition for showing delete button in showUserProfile function in UserProfiles.jsp
  • Deprecated show($("deleteButton")); that forced showing delete button no matter what.
  • Added show("deleteButton"); to saveUserProfile function to show deletebutton for freshly made user profiles

- Added condition for showing delete button in showUserProfile function in UserProfiles.jsp
- Deprecated show($("deleteButton")); that forced showing delete button no matter what.
- Added show("deleteButton"); to saveUserProfile function to show deletebutton for freshly made user profiles
@Patrykb0802 Patrykb0802 added this to the 2.7.5.4 milestone Jun 19, 2023
@Patrykb0802 Patrykb0802 requested a review from Limraj June 19, 2023 11:42
@github-actions
Copy link

github-actions bot commented Jun 19, 2023

Java Script Mocha Unit Test Results

268 tests  ±0   268 ✔️ ±0   5s ⏱️ ±0s
  70 suites ±0       0 💤 ±0 
    1 files   ±0       0 ±0 

Results for commit e2c5581. ± Comparison against base commit 7ff86fa.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Jun 19, 2023

Java JUnit Test Results

2 083 tests  ±0   2 083 ✔️ ±0   29s ⏱️ +3s
     90 suites ±0          0 💤 ±0 
     90 files   ±0          0 ±0 

Results for commit e2c5581. ± Comparison against base commit 7ff86fa.

♻️ This comment has been updated with latest results.

@@ -133,6 +133,10 @@
}

function showUserProfile(userProfileId) {
if (userProfileId == -1)
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. Click on 'Add user profile';
  2. Empty 'Profile name';
  3. Click on 'save'; -> Message appears 'Profile name must be unique and not empty'
  4. "Delete" button appears;
  5. Click on "Delete" button -> "Are you sure you want to delete this profil?" ok -> "Profile successfully deleted." ok -> "Failed to execute 'removeChild' on 'Node': parameter 1 is not of type 'Node'." error

- Added condition for showing delete button in showUserProfile function in UserProfiles.jsp
- Deprecated show($("deleteButton")); that forced showing delete button no matter what.
- Added show("deleteButton"); to saveUserProfileCB function to show deletebutton for freshly made user profiles
@Limraj Limraj self-requested a review June 19, 2023 18:12
@Limraj Limraj merged commit 25f3a49 into release/2.7.5.4 Jun 19, 2023
10 checks passed
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