Merge branch '7.0' of git@github.com:Dolibarr/dolibarr.git into develop
Conflicts: htdocs/langs/en_US/errors.lang
This commit is contained in:
commit
26ee7ec5be
@ -1047,7 +1047,7 @@ class Paiement extends CommonObject
|
|||||||
*/
|
*/
|
||||||
function getNomUrl($withpicto=0, $option='', $mode='withlistofinvoices', $notooltip=0)
|
function getNomUrl($withpicto=0, $option='', $mode='withlistofinvoices', $notooltip=0)
|
||||||
{
|
{
|
||||||
global $langs;
|
global $conf, $langs;
|
||||||
|
|
||||||
if (! empty($conf->dol_no_mouse_hover)) $notooltip=1; // Force disable tooltips
|
if (! empty($conf->dol_no_mouse_hover)) $notooltip=1; // Force disable tooltips
|
||||||
|
|
||||||
|
|||||||
@ -653,9 +653,10 @@ class Tva extends CommonObject
|
|||||||
* @param int $withpicto 0=No picto, 1=Include picto into link, 2=Only picto
|
* @param int $withpicto 0=No picto, 1=Include picto into link, 2=Only picto
|
||||||
* @param string $option link option
|
* @param string $option link option
|
||||||
* @param int $notooltip 1=Disable tooltip
|
* @param int $notooltip 1=Disable tooltip
|
||||||
|
* @param string $morecss More CSS
|
||||||
* @return string Chaine with URL
|
* @return string Chaine with URL
|
||||||
*/
|
*/
|
||||||
function getNomUrl($withpicto=0, $option='', $notooltip=0)
|
function getNomUrl($withpicto=0, $option='', $notooltip=0, morecss='')
|
||||||
{
|
{
|
||||||
global $langs, $conf;
|
global $langs, $conf;
|
||||||
|
|
||||||
|
|||||||
@ -1205,7 +1205,7 @@ class Contrat extends CommonObject
|
|||||||
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
* @param int $notrigger 0=launch triggers after, 1=disable triggers
|
||||||
* @return int <0 if KO, >0 if OK
|
* @return int <0 if KO, >0 if OK
|
||||||
*/
|
*/
|
||||||
function update($user=null, $notrigger=0)
|
function update($user, $notrigger=0)
|
||||||
{
|
{
|
||||||
global $conf, $langs;
|
global $conf, $langs;
|
||||||
$error=0;
|
$error=0;
|
||||||
|
|||||||
@ -162,6 +162,7 @@ class Interventions extends DolibarrApi
|
|||||||
{
|
{
|
||||||
$num = $db->num_rows($result);
|
$num = $db->num_rows($result);
|
||||||
$min = min($num, ($limit <= 0 ? $num : $limit));
|
$min = min($num, ($limit <= 0 ? $num : $limit));
|
||||||
|
$i = 0;
|
||||||
while ($i < $min)
|
while ($i < $min)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($result);
|
$obj = $db->fetch_object($result);
|
||||||
|
|||||||
@ -73,7 +73,7 @@ ErrorLDAPSetupNotComplete=Dolibarr-LDAP matching is not complete.
|
|||||||
ErrorLDAPMakeManualTest=A .ldif file has been generated in directory %s. Try to load it manually from command line to have more information on errors.
|
ErrorLDAPMakeManualTest=A .ldif file has been generated in directory %s. Try to load it manually from command line to have more information on errors.
|
||||||
ErrorCantSaveADoneUserWithZeroPercentage=Can't save an action with "statut not started" if field "done by" is also filled.
|
ErrorCantSaveADoneUserWithZeroPercentage=Can't save an action with "statut not started" if field "done by" is also filled.
|
||||||
ErrorRefAlreadyExists=Ref used for creation already exists.
|
ErrorRefAlreadyExists=Ref used for creation already exists.
|
||||||
ErrorPleaseTypeBankTransactionReportName=Please ennter the bank statement name where the entry has to be reported (Format YYYYMM or YYYYMMDD)
|
ErrorPleaseTypeBankTransactionReportName=Please enter the bank statement name where the entry has to be reported (Format YYYYMM or YYYYMMDD)
|
||||||
ErrorRecordHasChildren=Failed to delete record since it has some childs.
|
ErrorRecordHasChildren=Failed to delete record since it has some childs.
|
||||||
ErrorRecordHasAtLeastOneChildOfType=Object has at least one child of type %s
|
ErrorRecordHasAtLeastOneChildOfType=Object has at least one child of type %s
|
||||||
ErrorRecordIsUsedCantDelete=Can't delete record. It is already used or included into other object.
|
ErrorRecordIsUsedCantDelete=Can't delete record. It is already used or included into other object.
|
||||||
|
|||||||
@ -261,6 +261,8 @@ class Thirdparties extends DolibarrApi
|
|||||||
{
|
{
|
||||||
global $db, $hookmanager;
|
global $db, $hookmanager;
|
||||||
|
|
||||||
|
$error = 0;
|
||||||
|
|
||||||
if ($id == $idtodelete)
|
if ($id == $idtodelete)
|
||||||
{
|
{
|
||||||
throw new RestException(400, 'Try to merge a thirdparty into itself');
|
throw new RestException(400, 'Try to merge a thirdparty into itself');
|
||||||
|
|||||||
@ -3793,7 +3793,7 @@ class Societe extends CommonObject
|
|||||||
*/
|
*/
|
||||||
public static function replaceThirdparty(DoliDB $db, $origin_id, $dest_id)
|
public static function replaceThirdparty(DoliDB $db, $origin_id, $dest_id)
|
||||||
{
|
{
|
||||||
if ($origin_id == $id)
|
if ($origin_id == $dest_id)
|
||||||
{
|
{
|
||||||
dol_syslog('Error: Try to merge a thirdparty into itself');
|
dol_syslog('Error: Try to merge a thirdparty into itself');
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user