Skip to content
Snippets Groups Projects
Commit ebc39ccc authored by User expired's avatar User expired
Browse files

openolat#34: do not show any dropdown in the create course controller when the...

openolat#34: do not show any dropdown in the create course controller when the sismanager is disabled
parent 51e4a813
No related branches found
No related tags found
No related merge requests found
......@@ -281,10 +281,13 @@ public class CreateCourseRepositoryEntryController extends FormBasicController
isAdministrativeUser ? null : userIdentity,
translator.translate("form.course.sis.backend.error"));
// If SisManager is disabled (e.g. assessment instance) the autoComplete dropDown button is hidden
// and the minChars parameter is set to 100 to make the dropDown behave like a normal text input
autocompleterC = new FlexiAutoCompleterController(ureq,
getWindowControl(), provider,
translator.translate("form.autocomplete.not.found"), false,
true, 60, 0, 100, null, mainForm, true, true, SisManager.getInstance().isEnabled(), true, 10);
true, 60, (SisManager.getInstance().isEnabled() ? 0 : 101),
100, null, mainForm, true, true, SisManager.getInstance().isEnabled(), true, 10);
autocompleterC.setFormElement(false);
listenTo(autocompleterC);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment