From 49c20e4fc90fa23a4e3073ea26c8db1d6f116763 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sun, 9 Jul 2017 19:35:27 +0200 Subject: [PATCH] Fixe la facture avec un nom d'utilisateur comportant un espace --- Yavsc/Controllers/Haircut/HairCutCommandController.cs | 2 -- Yavsc/CustomModelBinder.cs | 1 - Yavsc/Views/Shared/Components/Bill/Bill_tex.cshtml | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Yavsc/Controllers/Haircut/HairCutCommandController.cs b/Yavsc/Controllers/Haircut/HairCutCommandController.cs index f7c6a365..f5fc4cf4 100644 --- a/Yavsc/Controllers/Haircut/HairCutCommandController.cs +++ b/Yavsc/Controllers/Haircut/HairCutCommandController.cs @@ -262,8 +262,6 @@ Le client final: {clientFinal} new HairTaintInstance { Taint = c }).ToList(); } - - // Une prestation pour enfant ou homme inclut toujours la coupe. if (model.Prestation.Gender != HairCutGenders.Women) model.Prestation.Cut = true; diff --git a/Yavsc/CustomModelBinder.cs b/Yavsc/CustomModelBinder.cs index b6eee45f..22262d94 100644 --- a/Yavsc/CustomModelBinder.cs +++ b/Yavsc/CustomModelBinder.cs @@ -2,7 +2,6 @@ using System; using System.Globalization; using System.Threading.Tasks; using Microsoft.AspNet.Mvc.ModelBinding; -using Newtonsoft.Json; namespace Yavsc { diff --git a/Yavsc/Views/Shared/Components/Bill/Bill_tex.cshtml b/Yavsc/Views/Shared/Components/Bill/Bill_tex.cshtml index 087105bd..ad670eb1 100644 --- a/Yavsc/Views/Shared/Components/Bill/Bill_tex.cshtml +++ b/Yavsc/Views/Shared/Components/Bill/Bill_tex.cshtml @@ -117,7 +117,7 @@ % Logo de la société @if (from.Avatar != null) { -\includegraphics[height=60pt]{@(ViewBag.AvatarsDir)/@(from.UserName).png} +\includegraphics[height=60pt]{@(ViewBag.AvatarsDir)/@(from.UserName.Replace(" ","\\ ")).png} } else { %\includegraphics{logo.png}