Skip to content
Snippets Groups Projects
Commit b3841df1 authored by srosse's avatar srosse
Browse files

OO-4782: fix NPE in single key translator for standard input field

parent 5ff101e5
No related branches found
No related tags found
No related merge requests found
......@@ -155,7 +155,7 @@ public class SingleKeyTranslatorController extends FormBasicController {
if(textArea) {
te = uifactory.addTextAreaElement(textId, null, -1, 8, 60, false, false, value, formLayout);
} else {
te = uifactory.addTextElement(textId, null, null, 255, value, formLayout);
te = uifactory.addTextElement(textId, textId, null, 255, value, formLayout);
te.setDisplaySize(60);
}
te.setMandatory(true);
......
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.core.util.resource;
import org.olat.core.id.OLATResourceable;
......
/**
* <a href="http://www.openolat.org">
* OpenOLAT - Online Learning and Training</a><br>
* <p>
* Licensed under the Apache License, Version 2.0 (the "License"); <br>
* you may not use this file except in compliance with the License.<br>
* You may obtain a copy of the License at the
* <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache homepage</a>
* <p>
* Unless required by applicable law or agreed to in writing,<br>
* software distributed under the License is distributed on an "AS IS" BASIS, <br>
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. <br>
* See the License for the specific language governing permissions and <br>
* limitations under the License.
* <p>
* Initial code contributed and copyrighted by<br>
* frentix GmbH, http://www.frentix.com
* <p>
*/
package org.olat.core.util.resource;
import java.util.ArrayDeque;
......
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