You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: WooCommerce/Classes/ViewRelated/Products/Edit Product/Product Settings/Visibility/ProductVisibilityViewController.swift
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -47,13 +47,14 @@ final class ProductVisibilityViewController: UIViewController {
47
47
48
48
overridefunc viewWillDisappear(_ animated:Bool){
49
49
super.viewWillDisappear(animated)
50
-
51
-
/// if the visibility selected is different from protected by password, the password becomes always an empty string (no password)
52
-
if visibility !=.passwordProtected {
53
-
productSettings.password =""
50
+
if isMovingFromParent {
51
+
/// if the visibility selected is different from protected by password, the password becomes always an empty string (no password)
0 commit comments