FIX missing token

This commit is contained in:
Laurent Destailleur 2019-07-20 11:44:31 +02:00
parent 2418b94e28
commit 9f9598ac99
2 changed files with 3 additions and 2 deletions

View File

@ -900,7 +900,8 @@ if ($mode == 'marketplace')
?>
<form method="POST" class="centpercent" id="searchFormList" action="<?php echo $dolistore->url ?>">
<input type="hidden" name="mode" value="marketplace" />
<input type="hidden" name="token" value="<?php echo $_SESSION['newtoken'] ?>">
<input type="hidden" name="mode" value="marketplace">
<div class="divsearchfield"><?php echo $langs->trans('Keyword') ?>:
<input name="search_keyword" placeholder="<?php echo $langs->trans('Chercher un module') ?>" id="search_keyword" type="text" size="50" value="<?php echo $options['search'] ?>"><br>
</div>

View File

@ -6607,7 +6607,7 @@ class Form
print '</table>';
if(!empty($compatibleImportElementsList))
if (!empty($compatibleImportElementsList))
{
$res=@include dol_buildpath('core/tpl/ajax/objectlinked_lineimport.tpl.php');
}