Gitlab CSE Unil

Commit 27ebde12 authored by M. Chardon's avatar M. Chardon
Browse files

bug affichage champs texts des boutons

parent 632d90ad
......@@ -155,11 +155,19 @@ class assign_feedback_editpdfplus_admin {
$tooltextsarray = explode("\",\"", $tooltexts);
$compteur = 0;
foreach ($tooltextsarray as $value) {
$obj = new object();
$obj->text= substr($value,1,-1);
$obj->index=$compteur;
$data->tool->textsarray[] = $obj;
$compteur++;
if ($value && $value != '"') {
$obj = new object();
$obj->text = /* substr( */$value/* ,1,-1) */;
if (substr($obj->text, 0, 1) == '"') {
$obj->text = substr($obj->text, 1);
}
if (substr($obj->text, -1) == '"') {
$obj->text = substr($obj->text,0, -1);
}
$obj->index = $compteur;
$data->tool->textsarray[] = $obj;
$compteur++;
}
}
} else {
$data->tool->textsarray = null;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment