7551543 WebUI: Fix changing category on HBAC/Sudo/etc Rule pages

Authored and Committed by stsymbal 4 years ago
    WebUI: Fix changing category on HBAC/Sudo/etc Rule pages
    
    No object can be added to a rule when object category is 'all'.
    So while editing rule there is needed to save actual category value
    before adding related objects.
    
    Ticket: https://pagure.io/freeipa/issue/7961
    
    Signed-off-by: Serhii Tsymbaliuk <stsymbal@redhat.com>
    Reviewed-By: Armando Neto <abiagion@redhat.com>