line deleted when updated after rapproched

Fix an issue that deletes line when we update data after its rappro.
This commit is contained in:
Pierre Ardoin 2022-05-09 09:49:07 +02:00 committed by GitHub
parent b4e1bac32d
commit ec00c6fef2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -607,7 +607,11 @@ if ($result) {
print dol_get_fiche_end();
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Update").'"></div><br>';
if (!$objp->rappro) {
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Update").'"></div><br>';
}else{
print '<div class="center"><input type="submit" class="button" value="'.$langs->trans("Update").'" disabled></div><br>';
}
print "</form>";