Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop

This commit is contained in:
Laurent Destailleur 2016-06-03 22:15:25 +02:00
commit f81a4c56b7
2 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,8 @@
<?php <?php
/* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr> /* Copyright (C) 2013 Cédric Salvador <csalvador@gpcsolutions.fr>
* Copyright (C) 2013-2015 Laurent Destaileur <ely@users.sourceforge.net> * Copyright (C) 2013-2016 Laurent Destaileur <ely@users.sourceforge.net>
* Copyright (C) 2014 Regis Houssin <regis.houssin@capnetworks.com> * Copyright (C) 2014 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2016 Juanjo Menent <jmenent@2byte.es>
* *
* This program is free software: you can redistribute it and/or modify * This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
@ -73,7 +74,7 @@ if (!$sortorder) {
$virtualdiffersfromphysical=0; $virtualdiffersfromphysical=0;
if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT) if (! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT)
|| ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER) || ! empty($conf->global->STOCK_CALCULATE_ON_SUPPLIER_DISPATCH_ORDER)
|| ! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT_CLOSE) || ! empty($conf->global->STOCK_CALCULATE_ON_SHIPMENT_CLOSE))
{ {
$virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs. $virtualdiffersfromphysical=1; // According to increase/decrease stock options, virtual and physical stock may differs.
} }

View File

@ -104,17 +104,17 @@ if (empty($reshook)) {
break; break;
} }
if (! $error) $tabparam['AGENDA_EXT_NAME_'.$id.'_'.$i]=$name;
{ $tabparam['AGENDA_EXT_SRC_'.$id.'_'.$i]=$src;
$result=dol_set_user_param($db, $conf, $object, $tabparam); $tabparam['AGENDA_EXT_OFFSETTZ_'.$id.'_'.$i]=$offsettz;
if (! $result > 0) $error++; $tabparam['AGENDA_EXT_COLOR_'.$id.'_'.$i]=$color;
} $tabparam['AGENDA_EXT_ENABLED_'.$id.'_'.$i]=$enabled;
$i ++; $i ++;
} }
if (!$error) { if (!$error) {
$result = dol_set_user_param($db, $conf, $fuser, $tabparam); $result = dol_set_user_param($db, $conf, $object, $tabparam);
if (!$result > 0) { if (!$result > 0) {
$error ++; $error ++;
} }