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 106d74184c
commit 21189048e7

View File

@ -595,6 +595,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>";
}