Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
3335bf629b
@ -46,6 +46,7 @@ For users:
|
|||||||
New experimental modules:
|
New experimental modules:
|
||||||
- New: Add margin and commissions management module.
|
- New: Add margin and commissions management module.
|
||||||
- New: Add holiday module.
|
- New: Add holiday module.
|
||||||
|
- New: Allow to search product from barcodes directly from the permanent mini search left box
|
||||||
|
|
||||||
- Fix: [ bug #499 ]: Supplier order input method not translated
|
- Fix: [ bug #499 ]: Supplier order input method not translated
|
||||||
- Fix: No images into product description lines as PDF generation does
|
- Fix: No images into product description lines as PDF generation does
|
||||||
|
|||||||
@ -223,7 +223,7 @@ if ($socid)
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3">'.$soc->barcode.'</td></tr>';
|
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3">'.$soc->barcode.'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2007-2011 Regis Houssin <regis@dolibarr.fr>
|
/* Copyright (C) 2007-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -169,7 +169,7 @@ class FormBarCode
|
|||||||
{
|
{
|
||||||
print '<form method="post" action="'.$page.'">';
|
print '<form method="post" action="'.$page.'">';
|
||||||
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
print '<input type="hidden" name="action" value="setfk_barcode_type">';
|
print '<input type="hidden" name="action" value="set'.$htmlname.'">';
|
||||||
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
print '<table class="nobordernopadding" cellpadding="0" cellspacing="0">';
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
$this->select_barcode_type($selected, $htmlname, 1);
|
$this->select_barcode_type($selected, $htmlname, 1);
|
||||||
|
|||||||
@ -92,7 +92,8 @@ ALTER TABLE llx_actioncomm MODIFY elementtype VARCHAR(32);
|
|||||||
|
|
||||||
-- TASK #107
|
-- TASK #107
|
||||||
ALTER TABLE llx_ecm_directories MODIFY COLUMN label varchar(64) NOT NULL;
|
ALTER TABLE llx_ecm_directories MODIFY COLUMN label varchar(64) NOT NULL;
|
||||||
ALTER TABLE llx_ecm_directories ADD COLUMN fullpath varchar(255) AFTER cachenbofdoc;
|
ALTER TABLE llx_ecm_directories ADD COLUMN fullpath text AFTER cachenbofdoc;
|
||||||
|
ALTER TABLE llx_ecm_directories MODIFY COLUMN fullpath text;
|
||||||
ALTER TABLE llx_ecm_directories ADD COLUMN extraparams varchar(255) AFTER fullpath;
|
ALTER TABLE llx_ecm_directories ADD COLUMN extraparams varchar(255) AFTER fullpath;
|
||||||
ALTER TABLE llx_ecm_directories ADD COLUMN acl text;
|
ALTER TABLE llx_ecm_directories ADD COLUMN acl text;
|
||||||
ALTER TABLE llx_ecm_directories ADD INDEX idx_ecm_directories_fk_user_c (fk_user_c);
|
ALTER TABLE llx_ecm_directories ADD INDEX idx_ecm_directories_fk_user_c (fk_user_c);
|
||||||
@ -100,6 +101,8 @@ ALTER TABLE llx_ecm_directories ADD INDEX idx_ecm_directories_fk_user_m (fk_user
|
|||||||
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_c FOREIGN KEY (fk_user_c) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_c FOREIGN KEY (fk_user_c) REFERENCES llx_user (rowid);
|
||||||
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_m FOREIGN KEY (fk_user_m) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_directories ADD CONSTRAINT fk_ecm_directories_fk_user_m FOREIGN KEY (fk_user_m) REFERENCES llx_user (rowid);
|
||||||
|
|
||||||
|
ALTER TABLE llx_ecm_documents DROP FOREIGN KEY fk_ecm_documents_fk_directory;
|
||||||
|
ALTER TABLE llx_ecm_documents DROP INDEX idx_ecm_documents_ref;
|
||||||
ALTER TABLE llx_ecm_documents DROP INDEX idx_ecm_documents;
|
ALTER TABLE llx_ecm_documents DROP INDEX idx_ecm_documents;
|
||||||
ALTER TABLE llx_ecm_documents DROP COLUMN manualkeyword;
|
ALTER TABLE llx_ecm_documents DROP COLUMN manualkeyword;
|
||||||
ALTER TABLE llx_ecm_documents DROP COLUMN fullpath_orig;
|
ALTER TABLE llx_ecm_documents DROP COLUMN fullpath_orig;
|
||||||
@ -107,14 +110,15 @@ ALTER TABLE llx_ecm_documents DROP COLUMN private;
|
|||||||
ALTER TABLE llx_ecm_documents DROP COLUMN crc;
|
ALTER TABLE llx_ecm_documents DROP COLUMN crc;
|
||||||
ALTER TABLE llx_ecm_documents DROP COLUMN cryptkey;
|
ALTER TABLE llx_ecm_documents DROP COLUMN cryptkey;
|
||||||
ALTER TABLE llx_ecm_documents DROP COLUMN cipher;
|
ALTER TABLE llx_ecm_documents DROP COLUMN cipher;
|
||||||
ALTER TABLE llx_ecm_documents CHANGE COLUMN fullpath_dol fullpath varchar(255) NOT NULL;
|
ALTER TABLE llx_ecm_documents CHANGE COLUMN fullpath_dol fullpath text;
|
||||||
|
ALTER TABLE llx_ecm_documents MODIFY COLUMN ref varchar(32) NOT NULL;
|
||||||
|
ALTER TABLE llx_ecm_documents MODIFY COLUMN fullpath text;
|
||||||
ALTER TABLE llx_ecm_documents MODIFY COLUMN filemime varchar(128) NOT NULL;
|
ALTER TABLE llx_ecm_documents MODIFY COLUMN filemime varchar(128) NOT NULL;
|
||||||
ALTER TABLE llx_ecm_documents ADD COLUMN metadata text after description;
|
ALTER TABLE llx_ecm_documents ADD COLUMN metadata text after description;
|
||||||
ALTER TABLE llx_ecm_documents ADD COLUMN extraparams varchar(255) AFTER fk_directory;
|
ALTER TABLE llx_ecm_documents ADD COLUMN extraparams varchar(255) AFTER fk_directory;
|
||||||
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, fk_directory, entity);
|
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, entity);
|
||||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
||||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_directory FOREIGN KEY (fk_directory) REFERENCES llx_ecm_directories (rowid);
|
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ create table llx_ecm_directories
|
|||||||
fk_parent integer,
|
fk_parent integer,
|
||||||
description varchar(255) NOT NULL,
|
description varchar(255) NOT NULL,
|
||||||
cachenbofdoc integer NOT NULL DEFAULT 0,
|
cachenbofdoc integer NOT NULL DEFAULT 0,
|
||||||
fullpath varchar(255), -- can be NULL for virtual directory
|
fullpath text,
|
||||||
extraparams varchar(255), -- for stock other parameters with json format
|
extraparams varchar(255), -- for stock other parameters with json format
|
||||||
date_c datetime,
|
date_c datetime,
|
||||||
date_m timestamp,
|
date_m timestamp,
|
||||||
|
|||||||
@ -18,11 +18,10 @@
|
|||||||
-- ============================================================================
|
-- ============================================================================
|
||||||
|
|
||||||
|
|
||||||
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, fk_directory, entity);
|
ALTER TABLE llx_ecm_documents ADD UNIQUE INDEX idx_ecm_documents_ref (ref, entity);
|
||||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_create (fk_create);
|
||||||
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
ALTER TABLE llx_ecm_documents ADD INDEX idx_ecm_documents_fk_update (fk_update);
|
||||||
|
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_directory FOREIGN KEY (fk_directory) REFERENCES llx_ecm_directories (rowid);
|
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_create FOREIGN KEY (fk_create) REFERENCES llx_user (rowid);
|
||||||
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
ALTER TABLE llx_ecm_documents ADD CONSTRAINT fk_ecm_documents_fk_update FOREIGN KEY (fk_update) REFERENCES llx_user (rowid);
|
||||||
|
|
||||||
@ -21,16 +21,16 @@
|
|||||||
create table llx_ecm_documents
|
create table llx_ecm_documents
|
||||||
(
|
(
|
||||||
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
rowid integer AUTO_INCREMENT PRIMARY KEY,
|
||||||
ref varchar(16) NOT NULL,
|
|
||||||
entity integer DEFAULT 1 NOT NULL,
|
entity integer DEFAULT 1 NOT NULL,
|
||||||
|
ref varchar(32) NOT NULL, -- hash(fullpath + filename + version)
|
||||||
filename varchar(255) NOT NULL,
|
filename varchar(255) NOT NULL,
|
||||||
filesize integer NOT NULL,
|
filesize integer NOT NULL,
|
||||||
filemime varchar(128) NOT NULL,
|
filemime varchar(128) NOT NULL,
|
||||||
description text,
|
description text,
|
||||||
metadata text,
|
metadata text, -- Secure file information (json format / encrypted)
|
||||||
fullpath varchar(255) NOT NULL,
|
fullpath text,
|
||||||
fk_directory integer,
|
fk_directory integer,
|
||||||
extraparams varchar(255), -- for stock other parameters with json format
|
extraparams varchar(255), -- Other parameters (json format)
|
||||||
fk_create integer NOT NULL,
|
fk_create integer NOT NULL,
|
||||||
fk_update integer,
|
fk_update integer,
|
||||||
date_c datetime NOT NULL,
|
date_c datetime NOT NULL,
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2011 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
|
* Copyright (C) 2012 Marcos García <marcosgdf@gmail.com>
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -132,7 +133,7 @@ else
|
|||||||
if ($sall)
|
if ($sall)
|
||||||
{
|
{
|
||||||
$sql.= " AND (p.ref LIKE '%".$db->escape($sall)."%' OR p.label LIKE '%".$db->escape($sall)."%' OR p.description LIKE '%".$db->escape($sall)."%' OR p.note LIKE '%".$db->escape($sall)."%'";
|
$sql.= " AND (p.ref LIKE '%".$db->escape($sall)."%' OR p.label LIKE '%".$db->escape($sall)."%' OR p.description LIKE '%".$db->escape($sall)."%' OR p.note LIKE '%".$db->escape($sall)."%'";
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
$sql.= " OR p.barcode LIKE '%".$db->escape($sall)."%'";
|
$sql.= " OR p.barcode LIKE '%".$db->escape($sall)."%'";
|
||||||
}
|
}
|
||||||
|
|||||||
@ -105,7 +105,7 @@ if ($socid)
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($conf->global->MAIN_MODULE_BARCODE)
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3">'.$soc->barcode.'</td></tr>';
|
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3">'.$soc->barcode.'</td></tr>';
|
||||||
}
|
}
|
||||||
|
|||||||
@ -96,7 +96,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } }?>
|
<?php } }?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
||||||
|
|||||||
@ -111,7 +111,7 @@ if ($this->control->tpl['fournisseur']) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } }?>
|
<?php } }?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
||||||
|
|||||||
@ -69,7 +69,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><?php echo $this->control->tpl['barcode']; ?></td>
|
<td colspan="3"><?php echo $this->control->tpl['barcode']; ?></td>
|
||||||
|
|||||||
@ -106,7 +106,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } }?>
|
<?php } }?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
||||||
|
|||||||
@ -108,7 +108,7 @@ if ($this->control->tpl['fournisseur']) {
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } }?>
|
<?php } }?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
<td colspan="3"><input type="text" name="barcode" value="<?php echo $this->control->tpl['barcode']; ?>"></td>
|
||||||
|
|||||||
@ -68,7 +68,7 @@ dol_fiche_head($head, 'card', $langs->trans("ThirdParty"),0,'company');
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
|
|
||||||
<?php if ($conf->global->MAIN_MODULE_BARCODE) { ?>
|
<?php if (! empty($conf->barcode->enabled)) { ?>
|
||||||
<tr>
|
<tr>
|
||||||
<td><?php echo $langs->trans('Gencod'); ?></td>
|
<td><?php echo $langs->trans('Gencod'); ?></td>
|
||||||
<td colspan="3"><?php echo $this->control->tpl['barcode']; ?></td>
|
<td colspan="3"><?php echo $this->control->tpl['barcode']; ?></td>
|
||||||
|
|||||||
@ -784,7 +784,7 @@ else
|
|||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
// Barcode
|
// Barcode
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3"><input type="text" name="barcode" value="'.$object->barcode.'">';
|
print '<tr><td>'.$langs->trans('Gencod').'</td><td colspan="3"><input type="text" name="barcode" value="'.$object->barcode.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
@ -1218,7 +1218,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Barcode
|
// Barcode
|
||||||
if ($conf->global->MAIN_MODULE_BARCODE)
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
print '<tr><td valign="top">'.$langs->trans('Gencod').'</td><td colspan="3"><input type="text" name="barcode" value="'.$object->barcode.'">';
|
print '<tr><td valign="top">'.$langs->trans('Gencod').'</td><td colspan="3"><input type="text" name="barcode" value="'.$object->barcode.'">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
@ -1469,7 +1469,7 @@ else
|
|||||||
if (! empty($conf->global->SOCIETE_USEPREFIX)) $rowspan++;
|
if (! empty($conf->global->SOCIETE_USEPREFIX)) $rowspan++;
|
||||||
if (! empty($object->client)) $rowspan++;
|
if (! empty($object->client)) $rowspan++;
|
||||||
if (! empty($conf->fournisseur->enabled) && $object->fournisseur && ! empty($user->rights->fournisseur->lire)) $rowspan++;
|
if (! empty($conf->fournisseur->enabled) && $object->fournisseur && ! empty($user->rights->fournisseur->lire)) $rowspan++;
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE)) $rowspan++;
|
if (! empty($conf->barcode->enabled)) $rowspan++;
|
||||||
if (empty($conf->global->SOCIETE_DISABLE_STATE)) $rowspan++;
|
if (empty($conf->global->SOCIETE_DISABLE_STATE)) $rowspan++;
|
||||||
$htmllogobar='';
|
$htmllogobar='';
|
||||||
if ($showlogo || $showbarcode)
|
if ($showlogo || $showbarcode)
|
||||||
@ -1514,7 +1514,7 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Barcode
|
// Barcode
|
||||||
if (! empty($conf->global->MAIN_MODULE_BARCODE))
|
if (! empty($conf->barcode->enabled))
|
||||||
{
|
{
|
||||||
print '<tr><td>';
|
print '<tr><td>';
|
||||||
print $langs->trans('Gencod').'</td><td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'">'.$object->barcode;
|
print $langs->trans('Gencod').'</td><td colspan="'.(2+(($showlogo || $showbarcode)?0:1)).'">'.$object->barcode;
|
||||||
|
|||||||
@ -6,6 +6,7 @@
|
|||||||
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
* Copyright (C) 2005-2012 Regis Houssin <regis@dolibarr.fr>
|
||||||
* Copyright (C) 2005 Lionel Cousteix <etm_ltd@tiscali.co.uk>
|
* Copyright (C) 2005 Lionel Cousteix <etm_ltd@tiscali.co.uk>
|
||||||
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
* Copyright (C) 2011 Herve Prot <herve.prot@symeos.com>
|
||||||
|
* Copyright (C) 2012 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
|
||||||
@ -882,7 +883,7 @@ else
|
|||||||
$result=$ldap->connect_bind();
|
$result=$ldap->connect_bind();
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$userSearchFilter = '('.$conf->global->LDAP_FILTER_CONNECTION.'('.$this->getUserIdentifier().'='.$fuser->login.'))';
|
$userSearchFilter = '('.$conf->global->LDAP_FILTER_CONNECTION.'('.$ldap->getUserIdentifier().'='.$fuser->login.'))';
|
||||||
$entries = $ldap->fetch($fuser->login,$userSearchFilter);
|
$entries = $ldap->fetch($fuser->login,$userSearchFilter);
|
||||||
if (! $entries)
|
if (! $entries)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user