br-automation-com / BnR-Successor-Product-Finder-Releases-Only

Enter an obsolete material to receive a successor.
0 stars 0 forks source link

Initial Successor product latched on subsequent searches #1

Closed popeanthony closed 1 year ago

popeanthony commented 1 year ago

If you perform a valid search, then perform a search for a product that does not have a valid successor, then the initial, valid successor product is shown.

To reproduce: search '8LSA35.E0030C1-0' - > Returns 8LSA35.E0030C1-3 (expected) enter 'y' to start a new search enter '3IF7E3.9' -> Returns 8LSA35.E0030C1-3 (bug) image

ChrisHairstonBnR commented 1 year ago

materialOutput variable was not resetting at the top of each iteration and therefore was carrying over into the next search. Issue should be fixed in next release.