Debug v15
This commit is contained in:
parent
3e1fa44657
commit
7d07da527d
@ -318,14 +318,14 @@ abstract class DoliDB implements Database
|
||||
/**
|
||||
* Return first result from query as object
|
||||
* Note : This method executes a given SQL query and retrieves the first row of results as an object. It should only be used with SELECT queries
|
||||
* Dont add LIMIT to your query, it will be added by this method
|
||||
* @param string $sql the sql query string
|
||||
* @return bool| object
|
||||
* @deprecated
|
||||
* Dont add LIMIT to your query, it will be added by this method.
|
||||
*
|
||||
* @param string $sql The sql query string
|
||||
* @return bool|object Result of fetch_object
|
||||
*/
|
||||
public function getRow($sql)
|
||||
{
|
||||
$sql .= ' LIMIT 1;';
|
||||
$sql .= ' LIMIT 1';
|
||||
|
||||
$res = $this->query($sql);
|
||||
if ($res) {
|
||||
@ -338,9 +338,10 @@ abstract class DoliDB implements Database
|
||||
/**
|
||||
* return all results from query as an array of objects
|
||||
* Note : This method executes a given SQL query and retrieves all row of results as an array of objects. It should only be used with SELECT queries
|
||||
* be carefull with this method use it only with some limit of results to avoid performences loss
|
||||
* @param string $sql the sql query string
|
||||
* @return bool| array
|
||||
* be carefull with this method use it only with some limit of results to avoid performences loss.
|
||||
*
|
||||
* @param string $sql The sql query string
|
||||
* @return bool|array Result
|
||||
* @deprecated
|
||||
*/
|
||||
public function getRows($sql)
|
||||
|
||||
@ -256,10 +256,13 @@ $fk_usergroup1 = GETPOST('fk_usergroup1');
|
||||
</div>
|
||||
|
||||
<?php
|
||||
dol_fiche_end();
|
||||
|
||||
print dol_get_fiche_end();
|
||||
|
||||
llxFooter();
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Return a html list element with diff between required rank and user rank
|
||||
|
||||
@ -581,7 +581,7 @@ if ($action == "freezone") {
|
||||
if ($action == "addnote") {
|
||||
$desc = GETPOST('addnote', 'alpha');
|
||||
if ($idline==0) {
|
||||
$invoice->update_note_public($desc);
|
||||
$invoice->update_note($desc, '_public');
|
||||
} else foreach ($invoice->lines as $line) {
|
||||
if ($line->id == $idline) {
|
||||
$result = $invoice->updateline($line->id, $desc, $line->subprice, $line->qty, $line->remise_percent, $line->date_start, $line->date_end, $line->tva_tx, $line->localtax1_tx, $line->localtax2_tx, 'HT', $line->info_bits, $line->product_type, $line->fk_parent_line, 0, $line->fk_fournprice, $line->pa_ht, $line->label, $line->special_code, $line->array_options, $line->situation_percent, $line->fk_unit);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user