Skip to content

Commit

Permalink
PRG: 43335: leftover JS in async calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaagen authored and klees committed Jan 28, 2025
1 parent 01a1ace commit 8bb8461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ilObjStudyProgrammeAutoMembershipsGUI
private const CMD_DELETE = 'delete';
private const CMD_DELETE_CONFIRMATION = 'deleteConfirmation';
public const CMD_GET_ASYNC_MODAL_OUTPUT = 'getAsynchModalOutput';
private const CMD_NEXT_STEP = 'nextStep';
public const CMD_NEXT_STEP = 'nextStep';
private const CMD_ENABLE = 'enable';
private const CMD_DISABLE = 'disable';
private const CMD_PROFILE_NOT_PUBLIC = 'profile_not_public';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ class ilObjStudyProgrammeGUI extends ilContainerGUI
private const TAB_MEMBERS = "members";
private const TAB_METADATA = "edit_advanced_settings";
private const SUBTAB_PAGE_EDIT = "page";
private const ASYNC_CALLS = [
ilObjStudyProgrammeAutoCategoriesGUI::CMD_GET_ASYNC_MODAL,
ilObjStudyProgrammeAutoMembershipsGUI::CMD_GET_ASYNC_MODAL_OUTPUT,
ilObjStudyProgrammeAutoMembershipsGUI::CMD_NEXT_STEP,
];

protected ilLocatorGUI $ilLocator;
protected ilComponentLogger $ilLog;
Expand Down Expand Up @@ -116,10 +121,7 @@ public function executeCommand(): void
$cmd = $this->ctrl->getCmd(self::SUBTAB_VIEW_MANAGE);
$next_class = $this->ctrl->getNextClass($this);

if (!in_array($cmd, [
ilObjStudyProgrammeAutoCategoriesGUI::CMD_GET_ASYNC_MODAL,
ilObjStudyProgrammeAutoMembershipsGUI::CMD_GET_ASYNC_MODAL_OUTPUT
])) {
if (!in_array($cmd, self::ASYNC_CALLS)) {
$this->addToNavigationHistory();
parent::prepareOutput();
$this->addHeaderAction();
Expand Down

0 comments on commit 8bb8461

Please sign in to comment.