Commit 2d8b90a
committed
[FIX] estate: fix edge-case in validation of a new offer's price
A new offer's price must be at least equal to the one of the best existing offer.
We use the "best_price" computed field on "estate.property" for this and we must
account for the case when it hasn't been initialized yet. In that case, use 0 as a fallback.1 parent ea1aaa7 commit 2d8b90a
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments