From de75812efc927e1ac02d996d1f767d24bd64c297 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 24 Aug 2024 09:23:35 +0200 Subject: [PATCH] Fix: clone formsemestre --- app/scodoc/sco_formsemestre_edit.py | 3 ++- sco_version.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_formsemestre_edit.py b/app/scodoc/sco_formsemestre_edit.py index e607b2cd0..d0146ba19 100644 --- a/app/scodoc/sco_formsemestre_edit.py +++ b/app/scodoc/sco_formsemestre_edit.py @@ -1397,7 +1397,8 @@ def do_formsemestre_clone( formsemestre.parcours = formsemestre_orig.parcours # 6- Copy description - formsemestre.description = formsemestre_orig.description.clone() + if formsemestre_orig.description: + formsemestre.description = formsemestre_orig.description.clone() db.session.add(formsemestre) db.session.commit() diff --git a/sco_version.py b/sco_version.py index 42dab1159..3f09d6d23 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.7.7" +SCOVERSION = "9.7.8" SCONAME = "ScoDoc"