dolibarr-bugtrack
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-bugtrack] [Bug #1232] Propal/Order/Invoice = >Extrafield on fr


From: Doliforge
Subject: [Dolibarr-bugtrack] [Bug #1232] Propal/Order/Invoice = >Extrafield on free lines are not saved
Date: Mon, 03 Feb 2014 15:34:15 +0100

Doliforge
Is this email not displaying correctly?
update email preferences.

Propal/Order/Invoice = >Extrafield on free lines are not saved

Latest modifications

2014-02-03 15:34 (Europe/Paris)
Changes:
  • Detected in version: 
3.5.0develop

Answer now

Snapshot

 Details
Submitted by:  HENRY Florian (fhenry) Submitted on:  2014-01-29 14:12
Last Modified On:  2014-01-29 14:31 
Summary:  Propal/Order/Invoice = >Extrafield on free lines are not saved
Description:  Define extrafeild on line propal.
Edit a proposal, add a free product line and put a value into extrafeild define. The value of extrafield is not saved.

Step to reproduce bug:  Define extrafeild on line propal.
Edit a proposal, add a free product line and put a value into extrafeild define. The value of extrafield is not saved.

problem come from global from that have similar input name for extrafield into free product line and defined product line. So the value posted are the last (the one from predifined product lines eg nothing because we input value on free product line).
It was working fine when the orm were define into add line template but as from now they are outside, i don't know easy solution.
Detected in version:  develop Category:  Core Problem
Severity:  5 - Major OS Type/Version:  Ubuntu 13.04
PHP version:  PHP 5.4 Database type and version:  MysqL 5
 Status
Status:  Open Assigned to:  None
Resolution:  None 

Comments

benke 2014-01-29 14:31
the problem is caused by the use of only one form/table for all the "addline" screen, i think that the problem is not only on the extrafields fields

the good and proper way seems to create 5 tables and 5 forms for the propal, order and bills main page
1 form/table for the printobjectlines
1 form/table for the formAddObjectLine
1 form/table for the formAddFreeProduct
1 form/table for formAddPredefinedProduct
and finaly 1 form/table for the hook (allready done on the milestone)

for a good structure of code propose that the form/table was written on tpl file


reply via email to

[Prev in Thread] Current Thread [Next in Thread]