Merge pull request #3428 from marcosgdf/bug-3426
FIX [ bug #3426 ] Unable to create an invoice from a contract with extrafields
This commit is contained in:
commit
fb70fbdc06
@ -21,6 +21,7 @@ FIX: Not showing task extrafields when creating from left menu
|
|||||||
FIX [ bug #3288 ] Tasks box is not properly drawn
|
FIX [ bug #3288 ] Tasks box is not properly drawn
|
||||||
FIX [ bug #3211 ] Outstading bill amount of a client showed wrong amounts
|
FIX [ bug #3211 ] Outstading bill amount of a client showed wrong amounts
|
||||||
FIX [ bug #3321 ] Users with certain permissions were shown a "forbidden access" page even if they had the rights
|
FIX [ bug #3321 ] Users with certain permissions were shown a "forbidden access" page even if they had the rights
|
||||||
|
FIX [ bug #3426 ] Unable to create an invoice from a contract with extrafields
|
||||||
|
|
||||||
NEW: Created new ContratLigne::insert function
|
NEW: Created new ContratLigne::insert function
|
||||||
|
|
||||||
|
|||||||
@ -3375,6 +3375,11 @@ abstract class CommonObject
|
|||||||
{
|
{
|
||||||
if (empty($rowid)) $rowid=$this->id;
|
if (empty($rowid)) $rowid=$this->id;
|
||||||
|
|
||||||
|
//To avoid SQL errors. Probably not the better solution though
|
||||||
|
if (!$this->table_element) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (! is_array($optionsArray))
|
if (! is_array($optionsArray))
|
||||||
{
|
{
|
||||||
// optionsArray not already loaded, so we load it
|
// optionsArray not already loaded, so we load it
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user