[#2352] Bugfix
authorEric Mc Sween <eric.mcsween@auf.org>
Thu, 10 Nov 2011 16:43:51 +0000 (11:43 -0500)
committerEric Mc Sween <eric.mcsween@auf.org>
Thu, 10 Nov 2011 16:43:51 +0000 (11:43 -0500)
project/dae/views.py

index b08c921..85549f4 100644 (file)
@@ -316,11 +316,13 @@ def embauche(request, key=None, dossier_id=None):
         )
         remunForm = RemunForm(request.POST, instance=dossier)
 
-        if dossier_form.is_valid() and \
+        if employe_form.is_valid() and \
+           dossier_form.is_valid() and \
            piecesForm.is_valid() and \
            comparaisons_formset.is_valid() and \
            remunForm.is_valid():
             employe.save()
+            dossier_form.save()
             piecesForm.save()
             remunForm.save()