Fix travis
This commit is contained in:
parent
a916f6af59
commit
d8c6e17efd
@ -426,9 +426,9 @@ if ((!empty($conf->service->enabled) || ($object->element == 'contrat')) && $dat
|
|||||||
|
|
||||||
$prefillDates = false;
|
$prefillDates = false;
|
||||||
|
|
||||||
if(! empty($conf->global->MAIN_FILL_SERVICE_DATES_FROM_LAST_SERVICE_LINE) && ! empty($object->lines))
|
if (!empty($conf->global->MAIN_FILL_SERVICE_DATES_FROM_LAST_SERVICE_LINE) && ! empty($object->lines))
|
||||||
{
|
{
|
||||||
for($i = count($object->lines) - 1; $i >= 0; $i--)
|
for ($i = count($object->lines) - 1; $i >= 0; $i--)
|
||||||
{
|
{
|
||||||
$lastline = $object->lines[$i];
|
$lastline = $object->lines[$i];
|
||||||
|
|
||||||
@ -457,14 +457,14 @@ if ((!empty($conf->service->enabled) || ($object->element == 'contrat')) && $dat
|
|||||||
print $form->selectDate($date_end, 'date_end', empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, 1, "addproduct", 1, 0);
|
print $form->selectDate($date_end, 'date_end', empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, empty($conf->global->MAIN_USE_HOURMIN_IN_DATE_RANGE) ? 0 : 1, 1, "addproduct", 1, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
if($prefillDates)
|
if ($prefillDates)
|
||||||
{
|
{
|
||||||
echo ' <span class="small"><a href="#" id="prefill_service_dates">' . $langs->trans('FillWithLastServiceDates') . '</a></span>';
|
echo ' <span class="small"><a href="#" id="prefill_service_dates">' . $langs->trans('FillWithLastServiceDates') . '</a></span>';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<script>';
|
print '<script>';
|
||||||
|
|
||||||
if($prefillDates)
|
if ($prefillDates)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
function prefill_service_dates()
|
function prefill_service_dates()
|
||||||
|
|||||||
@ -102,7 +102,7 @@ $search = array();
|
|||||||
foreach ($object->fields as $key => $val)
|
foreach ($object->fields as $key => $val)
|
||||||
{
|
{
|
||||||
$search_key = $key;
|
$search_key = $key;
|
||||||
if ($search_key == 'statut') $search_key = 'status'; // remove this after refactor entrepot.class property statut to status
|
if ($search_key == 'statut') $search_key = 'status'; // remove this after refactor entrepot.class property statut to status
|
||||||
if (GETPOST('search_'.$search_key, 'alpha') !== '') $search[$search_key] = GETPOST('search_'.$search_key, 'alpha');
|
if (GETPOST('search_'.$search_key, 'alpha') !== '') $search[$search_key] = GETPOST('search_'.$search_key, 'alpha');
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -228,7 +228,7 @@ if (!empty($conf->categorie->enabled))
|
|||||||
foreach ($search as $key => $val)
|
foreach ($search as $key => $val)
|
||||||
{
|
{
|
||||||
$class_key = $key;
|
$class_key = $key;
|
||||||
if ($class_key == 'status') $class_key = 'statut'; // remove this after refactor entrepot.class property statut to status
|
if ($class_key == 'status') $class_key = 'statut'; // remove this after refactor entrepot.class property statut to status
|
||||||
if (($key == 'status' && $search[$key] == -1) || $key=='entity') continue;
|
if (($key == 'status' && $search[$key] == -1) || $key=='entity') continue;
|
||||||
$mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
|
$mode_search = (($object->isInt($object->fields[$key]) || $object->isFloat($object->fields[$key])) ? 1 : 0);
|
||||||
if (strpos($object->fields[$key]['type'], 'integer:') === 0) {
|
if (strpos($object->fields[$key]['type'], 'integer:') === 0) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user