Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

SqlElement::getTitl...
 
Notifications
Clear all

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

2 Posts
2 Users
0 Reactions
3,245 Views
(@papjul)
Posts: 143
Active Member
Topic starter
 
[#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?


 
Posted : 09 Jul 2015 12H51
babynus
(@babynus)
Posts: 14966
Main Contributor 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.


 
Posted : 09 Jul 2015 14H55
Share:

Scroll to Top