diff --git a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql index a2d1267c81e..f26e2f80848 100644 --- a/htdocs/install/mysql/migration/17.0.0-18.0.0.sql +++ b/htdocs/install/mysql/migration/17.0.0-18.0.0.sql @@ -460,3 +460,9 @@ insert into llx_c_invoice_subtype (entity, fk_country, code, label, active) VALU ALTER TABLE llx_partnership ADD COLUMN email_partnership varchar(64) after fk_member; ALTER TABLE llx_contratdet ADD INDEX idx_contratdet_statut (statut); + +-- Drop the composite unique index that exists on llx_actioncomm to rebuild a new one without unique feature. +-- The old design introduced a deadlock over traffic intense Dolibarr instance. +-- VMYSQL4.1 DROP INDEX uk_actioncomm_ref on llx_table; +-- VPGSQL8.2 DROP INDEX uk_actioncomm_ref; +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_ref (ref, entity); diff --git a/htdocs/install/mysql/tables/llx_actioncomm.key.sql b/htdocs/install/mysql/tables/llx_actioncomm.key.sql index 944471620ae..3859f90c78d 100644 --- a/htdocs/install/mysql/tables/llx_actioncomm.key.sql +++ b/htdocs/install/mysql/tables/llx_actioncomm.key.sql @@ -29,4 +29,4 @@ ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_recurid (recurid); ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_ref_ext (ref_ext); ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_percent (percent); -ALTER TABLE llx_actioncomm ADD UNIQUE INDEX uk_actioncomm_ref (ref, entity); +ALTER TABLE llx_actioncomm ADD INDEX idx_actioncomm_ref (ref, entity); diff --git a/htdocs/public/users/view.php b/htdocs/public/users/view.php index c28175b898d..2df1404ab92 100644 --- a/htdocs/public/users/view.php +++ b/htdocs/public/users/view.php @@ -207,15 +207,25 @@ $arrayofcss = array(); $replacemainarea = (empty($conf->dol_hide_leftmenu) ? '
' : '').'
'; llxHeader($head, $object->getFullName($langs).' - '.$langs->trans("PublicVirtualCard"), '', '', 0, 0, '', '', '', 'onlinepaymentbody'.(GETPOST('mode')=='preview' ? ' scalepreview cursorpointer virtualcardpreview' : ''), $replacemainarea, 1, 1); +print ' + +'; + print ''."\n"; print '
'."\n"; + print '
'."\n"; print ''."\n"; print ''."\n"; print ''."\n"; print ''; print "\n"; -print ''."\n"; // Output html code for logo print '
';