Merge pull request #18946 from atm-lena/13.0_FIX_HookCreateDictionaryFieldList_HTMLTRTag

Hook createDictionaryFieldList :  tr html tag to right place
This commit is contained in:
Laurent Destailleur 2021-10-12 12:46:04 +02:00 committed by GitHub
commit d75138b362
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1238,6 +1238,10 @@ if ($id)
print $tdsoffields;
// Line to enter new values
print '<!-- line to add new entry -->';
print '<tr class="oddeven nodrag nodrop nohover">';
$obj = new stdClass();
// If data was already input, we define them in obj to populate input fields.
if (GETPOST('actionadd'))
@ -1256,9 +1260,6 @@ if ($id)
if ($id == 3) unset($fieldlist[2]); // Remove field ??? if dictionary Regions
// Line to enter new values
print '<!-- line to add new entry -->';
print '<tr class="oddeven nodrag nodrop nohover">';
if (empty($reshook))
{