FIX choice of category was lost if an error occurs during creation

This commit is contained in:
Laurent Destailleur 2017-03-11 00:50:31 +01:00
parent c0b3219c72
commit 67300f2a4e

View File

@ -591,6 +591,7 @@ if ($action == 'create' && $user->rights->projet->creer)
// Categories
print '<tr><td>'.$langs->trans("Categories").'</td><td colspan="3">';
$cate_arbo = $form->select_all_categories(Categorie::TYPE_PROJECT, '', 'parent', 64, 0, 1);
$arrayselected=GETPOST('categories', 'array');
print $form->multiselectarray('categories', $cate_arbo, $arrayselected, '', 0, '', 0, '100%');
print "</td></tr>";
}