Merge pull request #19412 from altairisfr/formextra

FIX : pass objectid into url after extrafield update
This commit is contained in:
Laurent Destailleur 2022-09-10 09:36:38 +02:00 committed by GitHub
commit a5d71d805b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -237,7 +237,7 @@ if (empty($reshook) && isset($extrafields->attributes[$object->table_element]['l
if ($object->table_element == 'societe') {
$fieldid = 'socid';
}
print '<form enctype="multipart/form-data" action="'.$_SERVER["PHP_SELF"].'" method="post" name="formextra">';
print '<form enctype="multipart/form-data" action="'.$_SERVER["PHP_SELF"] . '?' . $fieldid . '=' . $object->id . '" method="post" name="formextra">';
print '<input type="hidden" name="action" value="update_extras">';
print '<input type="hidden" name="attribute" value="'.$tmpkeyextra.'">';
print '<input type="hidden" name="token" value="'.newToken().'">';