Project

General

Custom queries

Profile

Actions

Bug #38260

closed

Katello host form hooks get attached multiple times

Added by Oleh Fedorenko about 2 months ago. Updated 30 days ago.

Status:
Duplicate
Priority:
Normal
Category:
Hosts
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Description of problem:

When organization gets changed in host form, it triggers a ContentLoad event. Katello extensions are hooked onto this event and attach various onChange handlers onto elements on the page. If the organization is changed multiple times, handlers are attached multiple times. This then leads to callbacks being called multiple times and certain elements being populated multiple times.

Steps to Reproduce:

1. Have two organizations
2. Go to Hosts > Create Host
3. Change organization to the other org and back a couple of times
4. Select content source
5. Open the lifecycle environment select

Actual behavior:
The lifecycle environment select offers the same environments many times, depending on how many times the organization was changed in step 3.

Expected behavior:
Each environment is offered only once


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #38264: Duplicate entries in the "Lifecycle Environment" or "Content View" dropdown menu when creating a hostClosedBernhard SuttnerActions
Actions #4

Updated by Oleh Fedorenko 30 days ago

  • Status changed from Ready For Testing to Duplicate
Actions

Also available in: Atom PDF