Forum

SqlElement::getTitl...
 
Notifications
Retirer tout

SqlElement::getTitle() should return i18n('col'.ucfirst($col))

2 Posts
2 Utilisateurs
0 Reactions
3,215 Vu
(@papjul)
Posts: 143
Active Member
Début du sujet
 
[#2422]

Hi,

Before:
public function getTitle($col) {
return i18n('col'.$col);
}
After:
public function getTitle($col) {
return i18n('col'.ucfirst($col));
}

See the difference by moving your mouse over environment lists on TestCase, for example.
Before: [colidContext1]
After: environment

By the way, is it possible to have a specific "title" language element? I mean, use i18n('title'.ucfirst($col)) instead of i18n('col'.ucfirst($col)). Our new users doesn't know very well the application so it would be very useful to have a longer description of the field (instead of just the name) so they can see what to do with the field by moving their mouse over (without having to open the documentation every time). If it is too much work for you, maybe you can just add them for the fields with "title" attribute (I think there are only titleIdContext1, titleIdContext2, titleIdContext3). What do you think?


 
Posté : 9 Juil PM 12:077
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

You're right there is a issue. :blush:
Your fix is a good start but is not complete. :huh:
It seems to work unless you change context type values. :ohmy:
Try and change context type values, then compare result on Ticket and on Test Case... 😉
To get correct values, you'll have to copy the getTitle() function from TicketMain.php to TestCaseMain.php.
This fix will be included in patch V5.0.2.

Anyway thanks a lot for reporting the issue and proposing a fix.


 
Posté : 9 Juil PM 14:077
Share:
Retour en haut