diff --git a/pom.xml b/pom.xml
index ab8e425..eab81d4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -10,7 +10,7 @@
dev.fyloz.trial.colorrecipesexplorer
ColorRecipesExplorer
- 1.3.0
+ 1.3.1
Color Recipes Explorer
diff --git a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Mix.java b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Mix.java
index 61c5056..62713b1 100644
--- a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Mix.java
+++ b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Mix.java
@@ -31,7 +31,7 @@ public class Mix implements IModel {
@ManyToOne
private MixType mixType;
- @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
+ @OneToMany(fetch = FetchType.EAGER, cascade = CascadeType.ALL)
@JoinColumn(name = "mix")
private List mixQuantities;
diff --git a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Recipe.java b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Recipe.java
index 2fbbd5d..4972215 100644
--- a/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Recipe.java
+++ b/src/main/java/dev/fyloz/trial/colorrecipesexplorer/core/model/Recipe.java
@@ -44,7 +44,7 @@ public class Recipe implements IModel {
private String note;
@JsonIgnore
- @OneToMany(mappedBy = "recipe", cascade = CascadeType.ALL, fetch = FetchType.EAGER)
+ @OneToMany(mappedBy = "recipe", cascade = CascadeType.ALL)
private List mixes;
@OneToMany(mappedBy = "recipe", cascade = CascadeType.ALL)
diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties
index f6b975c..3da7f2b 100644
--- a/src/main/resources/application.properties
+++ b/src/main/resources/application.properties
@@ -1,24 +1,21 @@
-# DATABASE
+# BDD
spring.datasource.url=jdbc:h2:file:./workdir/recipes
spring.datasource.username=sa
spring.datasource.password=LWK4Y7TvEbNyhu1yCoG3
-# DATABASE CONSOLE
+# CONSOLE DE LA BDD
spring.h2.console.path=/dbconsole
-# DATABASE CONSOLE REMOTE
-spring.h2.console.settings.trace=false
-spring.h2.console.settings.web-allow-others=false
# PORT
server.port=9090
-# CRE CONFIG
+# CRE
cre.server.upload-directory=./workdir
cre.server.password-file=passwords.txt
cre.server.url-use-port=true
cre.server.url-use-https=false
-# DEFAULT MATERIAL TYPES
+# TYPES DE PRODUIT PAR DÉFAUT
entities.material-types.defaults[0].name=Aucun
entities.material-types.defaults[0].prefix=
entities.material-types.defaults[0].use-percentages=false
@@ -32,8 +29,11 @@ entities.material-types.base-name=Base
# DEBUG
spring.jpa.show-sql=true
spring.h2.console.enabled=true
+# Permet d'accéder à la console de la BDD à distance
+spring.h2.console.settings.trace=false
+spring.h2.console.settings.web-allow-others=false
-# DO NOT MODIFY
+# NE PAS MODIFIER
spring.datasource.driver-class-name=org.h2.Driver
spring.thymeleaf.template-loader-path=classpath:/src/main/java/resources/templates
@@ -46,6 +46,7 @@ spring.servlet.multipart.max-request-size=15MB
spring.jpa.hibernate.ddl-auto=update
spring.jpa.database-platform=org.hibernate.dialect.H2Dialect
+spring.jpa.open-in-view=true
server.http2.enabled=true
server.error.whitelabel.enabled=false
diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css
index b444c70..20a564d 100644
--- a/src/main/resources/static/css/main.css
+++ b/src/main/resources/static/css/main.css
@@ -172,7 +172,6 @@ table:not(.noStyle) tr:nth-child(odd) {
#confirmBox, #promptBox {
background-color: #90caf9;
color: #1e88e5;
- height: 75px;
z-index: 60;
}
diff --git a/src/main/resources/templates/inventory.html b/src/main/resources/templates/inventory.html
index 78a234f..039fe84 100644
--- a/src/main/resources/templates/inventory.html
+++ b/src/main/resources/templates/inventory.html
@@ -172,14 +172,14 @@
else $(this).removeClass("lowQuantity");
});
- hide($("#hideOthers").attr("checked"));
+ hide($("#hideOthers").is(":checked"));
}
// Cache ou dévoile les produits qui ont la classe "lowQuantity", dépendamment du paramètre "checked"
function hide(checked) {
if (checked) {
materialRows.each(function () {
- if ($(this).hasClass("lowQuantity")) $(this).addClass("hidden");
+ if (!$(this).hasClass("lowQuantity")) $(this).addClass("hidden");
else $(this).removeClass("hidden");
});
} else {
diff --git a/src/main/resources/updates.md b/src/main/resources/updates.md
index 0d35eb7..5beb3b9 100644
--- a/src/main/resources/updates.md
+++ b/src/main/resources/updates.md
@@ -13,6 +13,8 @@
* Un message d'erreur apparaissait lors de la suppression d'une entité, même si l'opération se terminait avec succès.
* Les images et les fichiers SIMDUT étaient dissociés de leur entité lorsque le nom de celle-ci était modifié.
* Les images des recettes s'affichaient au dessus des étapes à certaines résolutions.
+* Le bouton "Cacher les autres produits" cachait les produits en manque.
+* Le la boite de confirmation n'était pas assez grande pour son contenu.
### Ajouts
* Le bouton enregistrer de l'explorateur de recette clignote lorsqu'une modification n'est pas sauvegardée.