Issue #2228477 by xandeadx: Better way to set  in DialogController::dialog().