Dolibarr ERP & CRM » Bugs » bug #1542 extrafields.class.php, showOutputField wrong translateLatest modifications
Answer now
Snapshot Details |
Submitted by: | Javier (javieral) | | Submitted on: | 2014-07-27 09:46 |
Last Modified On: | 2014-07-27 09:46 | |
Summary: | extrafields.class.php, showOutputField wrong translate |
Description: | When I use an extrafield type sellist, if the fields label is translatable, this translates, and the result is not displayed. Only the label of the translated field.
I think that the line:
$translabel=$langs->trans($field_toshow);
should be:
$translabel=$langs->trans($obj->$field_toshow); |
Step to reproduce bug: | Create extrafield in facturedet, type sellist, with params "name_table:name:rowid::", where 'name' is the field in MySQL table.
|
Detected in version: | develop | | Category: | Module: Customer Invoices |
Severity: | 5 - Major | | OS Type/Version: | All |
PHP version: | 5.4.12 | | Database type and version: | MySQL 5.6.12 |
Status |
Status: | Closed | | Assigned to: | Laurent Destailleur (eldy) |
Resolution: | Fixed | |
Comments- Laurent Destailleur 2014-07-28 20:12
- The bug has been corrected inside GIT sources
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release. |
|
(http://www.github.com/Dolibarr/dolibarr).
So fix should be available with next stable release.
Open→ ClosedNone→ Laurent Destailleur (eldy)None→ Fixed