Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-25805

Katello host form hooks get attached multiple times

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False
    • 0
    • Phoenix - Content
    • No

      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.

       

      How reproducible:

      always

       

      Is this issue a regression from an earlier version:

      I don't recall seeing this before, but I must admit I haven't looked too closely.

       

      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

       

      Business Impact / Additional info:

       

       

              Unassigned Unassigned
              aruzicka@redhat.com Adam Ruzicka
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: