Dolibarr ERP & CRM » Bugs » bug #1542 extrafields.class.php, showOutputField wrong translateSnapshot Details |
Last Modified On: | 2014-07-27 09:46 | | Submitted by: | Javier (javieral) |
Submitted 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: | Open | | Assigned to: | None |
Resolution: | None | |
Answer now
|
|