Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,12 @@ public function editQuestion(

$decimal_spots = $form->getItemByPostVar('precision_' . $variable->getVariable());
$int_precision = $form->getItemByPostVar('intprecision_' . $variable->getVariable());
if ($decimal_spots instanceof ilFormPropertyGUI && $decimal_spots->getValue() === 0) {
$txt = !$variable->isIntPrecisionValid($int_precision?->getValue(), $min_range_value, $max_range_value)
? 'err_divider_too_big_specific'
: 'err_division';
$int_precision?->setAlert($this->lng->txt($txt));
if (
$decimal_spots instanceof ilFormPropertyGUI
&& $decimal_spots->getValue() === 0.0
&& !$variable->isIntPrecisionValid($int_precision?->getValue(), $min_range_value, $max_range_value)
) {
$int_precision?->setAlert($this->lng->txt('err_division'));
$custom_errors = true;
}
}
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_ar.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_bg.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_cs.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Otázka se vzorcem obsahuje nekorektní inform
assessment#:#errRecursionInResult#:#Vzorec obsahuje neurčitou rekurzi.
assessment#:#err_category_in_use#:#Nejméně jedna kategorie nemůže být smazána. Jedna nebo více jednotek je již v použití.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Použil(a) jste více než jednu proměnnou výsledku. To textu otázky není povoleno.
assessment#:#err_no_formula#:#Musíte vložit vzorec
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_da.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###16 09 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###16 09 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###16 09 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###16 09 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_de.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Eine Formelfrage enthält fehlerhafte Angaben
assessment#:#errRecursionInResult#:#Die Formel enthält eine nicht auflösbare Rekursion.
assessment#:#err_category_in_use#:#Die Kategorie kann nicht gelöscht werden. Eine oder mehrere Einheiten der Kategorie sind bereits in Benutzung.
assessment#:#err_divider_too_big#:#Der Teiler einer der Variablen in dieser Frage ist zu gross.
assessment#:#err_divider_too_big_specific#:#Der Teiler dieser Variable ist zu gross.
assessment#:#err_division#:#Der von Ihnen gesetzte Wert macht es unmöglich einen gültigen Wert für die Variable zu generieren.
assessment#:#err_duplicate_results#:#Sie haben eine Ergebnisvariable mehrfach verwendet. Das ist innerhalb des Aufgabentextes nicht erlaubt!
assessment#:#err_no_formula#:#Bitte geben Sie eine Formel zur Berechnung des Ergebnisses an.
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_el.lang
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_en.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.
assessment#:#err_no_formula#:#You must enter a formula
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_es.lang
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,6 @@ assessment#:#errFormulaQuestion#:#¡Una fórmula de pregunta contiene informaci
assessment#:#errRecursionInResult#:#La fórmula contiene una recursividad infinita.
assessment#:#err_category_in_use#:#Al menos una categoría no se puede eliminar. Una o más unidades de la categoría ya están en uso.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Ha utilizado una variable de resultado más de una vez. Esto no está permitido en el texto de la pregunta.
assessment#:#err_no_formula#:#Debe introducir introducir una formula
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_et.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.
assessment#:#err_no_formula#:#You must enter a formula
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_fa.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_fr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,6 @@ assessment#:#errFormulaQuestion#:#A question de type Formule contient des inform
assessment#:#errRecursionInResult#:#La formule contient une récursivité infinie.
assessment#:#err_category_in_use#:#Au minimum une catégorie ne peut être supprimée. Une ou plusieurs unités de la catégorie sont encore utilisées.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#This value has to be smaller than the maximum range.
assessment#:#err_duplicate_results#:#Vous avez utilisé une variable de résultat plusieurs fois, ce qui n'est pas autorisé dans le texte d'une question.
assessment#:#err_no_formula#:#Vous devez entrer une formule
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_hr.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Pitanje u obliku formule sadrži netočne info
assessment#:#errRecursionInResult#:#Formula sadrži beskonačnu rekurziju.
assessment#:#err_category_in_use#:#Najmanje jedna kategorija se ne može izbrisati. Jedna ili više jedinica ove kategorije se već koriste.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Jednu ste varijablu rezultata koristili više puta. Ovo nije dopušteno u tekstu pitanja.
assessment#:#err_no_formula#:#Morate unijeti formulu
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_hu.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A képlet-kérdés hibás információt tartal
assessment#:#errRecursionInResult#:#A képlet végtelen rekurziót tartalmaz.
assessment#:#err_category_in_use#:#Legalább egy kategória nem törölhető. A kategória egy vagy több mértékegysége még használatban van.
assessment#:#err_divider_too_big#:#Ebben a kérdésben az egyik változó oszója túl nagy.
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#Ennek az értéknek a maximumnál kisebbnek kell lennie.
assessment#:#err_duplicate_results#:#Többször használtál egy végeredményt. Ez tesztkérdésben nem megengedett
assessment#:#err_no_formula#:#Képletet írjon
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_it.lang
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,6 @@ assessment#:#errFormulaQuestion#:#Una formula di domanda contiene informazioni e
assessment#:#errRecursionInResult#:#La formula contiene una ricorsione infinita.
assessment#:#err_category_in_use#:#Non è possibile eliminare alcuna categoria. Una o più unità di categoria sono ancora in uso.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###09 03 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#This value has to be smaller than the maximum range.###09 03 2022 new variable
assessment#:#err_duplicate_results#:#È stata utilizzata una variabile di risultato più di una volta. Questo non è consentito nel testo della domanda.
assessment#:#err_no_formula#:#Devi digitare una formula
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_ja.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#数式問題に間違った情報が含まれ
assessment#:#errRecursionInResult#:#式に無限再帰が含まれています。
assessment#:#err_category_in_use#:#カテゴリが一つは削除できません。複数のカテゴリのユニットがすでに使用中です。
assessment#:#err_divider_too_big#:#この問題の変数の分母は大きすぎます。
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#この値は最大範囲よりも小さくすべきです。
assessment#:#err_duplicate_results#:#利用可能な結果を複数回使用しています。問題文章中にこれは使用できません。
assessment#:#err_no_formula#:#式を入力する必要があります
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_ka.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_lt.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_nl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Een Formula-vraag bavt incorrect informatie!!
assessment#:#errRecursionInResult#:#De formule bevat een oneindige recursie.
assessment#:#err_category_in_use#:#Tenminste een categorie kon niet worden verwijderd. Een of meer eenheden van de categorie zijn in gebruikt.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Je gebruikt een resultaatvariabele meerdere malen. Dit is niet toegestaan in de vraagtekst.
assessment#:#err_no_formula#:#Je moet een formule invoeren
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_pl.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Jedno pytanie formuły zawiera błędne dane
assessment#:#errRecursionInResult#:#Formuła zawiera nie możliwą do rozwiązania rekursję.
assessment#:#err_category_in_use#:#Nie można usunąć kategorii. Jedna lub kilka jednostek tej kategorii są już używane.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Kilkakrotnie użyłeś jednej zmiennej wyniku. Poza tekstem zadania jest to niedozwolone!
assessment#:#err_no_formula#:#Podaj formułę do obliczenia wyniku.
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_pt.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#Uma pergunta de fórmula contém informação
assessment#:#errRecursionInResult#:#A fórmula contém um recurso infinito.
assessment#:#err_category_in_use#:#Pelo menos uma categoria não pode ser apagada. Uma ou mais unidades da categoria já estão a ser usadas.
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#Usou uma variável do resultado mais do que uma vez. Isso não é permitido no texto da pergunta.
assessment#:#err_no_formula#:#Tem de introduzir uma fórmula
Expand Down
1 change: 0 additions & 1 deletion lang/ilias_ro.lang
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,6 @@ assessment#:#errFormulaQuestion#:#A Formula Question contains incorrect informat
assessment#:#errRecursionInResult#:#The formula contains an infinite recursion.###24 10 2013 new variable
assessment#:#err_category_in_use#:#At least one category cannot be deleted. One or more units of the category are already in use.###24 10 2013 new variable
assessment#:#err_divider_too_big#:#The divider of one of the variables in this question is too big.###29 07 2022 new variable
assessment#:#err_divider_too_big_specific#:#The divider of this variable is too big.###04 11 2025 new variable
assessment#:#err_division#:#The value you chose would make it impossible to generate a valid value for the variable.###29 07 2022 new variable
assessment#:#err_duplicate_results#:#You used a result variable more than once. This is not allowed in the question text.###24 10 2013 new variable
assessment#:#err_no_formula#:#You must enter a formula###24 10 2013 new variable
Expand Down
Loading