Alexandre Kühn
c53b0ac188
[FIX] web: do no drop invalid record in list on discard
...
Revision on b09f0c99
The intent of the previous commit was to no drop records in a list
on discard in the following cases:
- when they have been created from a `default_get`
- when they have been created from an `onchange` that result
from a `default_get`
Before the commit above, the kind of records that were abandoned
in those cases are stated as invalid, which happens when a record
has a required field that is empty.
The case of an `onchange` that is not involved in a `default_get`
was not considered in the fixes above. In fact, this is the intent
behaviour in most cases. However, if the items in the list are
created from such an `onchange`, we should not drop them.
This commit fixes the bug where records in a list that are created
from an `onchange` are wrongly abandoned. Here is the new logic to
abandon a record on discard in a list:
- the record that is marked as "do not abandon" should not be
abandoned;
- a record that is registered as a "not new addition" in the
list should not be dropped;
- a record that is registered as a "new addition" in the list,
and has been updated afterwards, should not be dropped;
- a record that is not new should not be dropped;
opw-806650
2018-06-15 17:36:27 +02:00
..
2018-06-14 21:28:39 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 16:31:54 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-04-06 16:08:10 +02:00
2018-06-03 04:41:19 +02:00
2018-05-27 04:10:26 +02:00
2018-06-04 18:06:44 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-04 11:08:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-04 11:08:02 +02:00
2018-06-10 00:27:35 +02:00
2018-06-14 09:39:28 +02:00
2018-06-15 16:54:46 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 12:19:14 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-05 08:38:38 +02:00
2018-06-03 04:41:19 +02:00
2018-06-14 21:28:39 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-11 17:13:29 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-05-14 20:25:16 +02:00
2018-06-05 15:10:45 +02:00
2018-06-10 04:40:02 +02:00
2018-06-15 08:42:15 +02:00
2018-06-01 02:39:45 +02:00
2018-05-02 17:03:31 +02:00
2018-06-01 02:39:45 +02:00
2018-04-17 13:29:04 +02:00
2018-05-01 02:39:26 +02:00
2018-06-01 02:39:45 +02:00
2018-04-06 14:33:40 +02:00
2018-04-11 16:19:41 +02:00
2018-04-30 16:54:29 +02:00
2018-05-22 11:37:17 +02:00
2018-05-22 15:19:10 +02:00
2018-04-25 18:09:05 +02:00
2018-05-18 11:46:07 +02:00
2018-04-01 02:39:07 +02:00
2018-06-05 15:10:45 +02:00
2018-05-18 18:53:56 +02:00
2018-05-02 15:34:42 +02:00
2018-06-04 11:30:49 +02:00
2018-06-01 02:39:45 +02:00
2018-06-03 00:27:35 +02:00
2018-04-23 17:59:59 +02:00
2018-06-13 18:13:48 +02:00
2018-06-01 02:39:45 +02:00
2018-06-13 14:12:12 +02:00
2018-06-10 04:40:02 +02:00
2018-06-14 21:28:39 +02:00
2018-06-10 04:40:02 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 16:16:57 +02:00
2018-06-03 04:41:19 +02:00
2018-06-14 18:20:52 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 10:05:52 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-11 08:11:39 +02:00
2018-06-03 04:41:19 +02:00
2018-06-13 18:13:48 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 12:19:14 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-12 16:31:54 +02:00
2018-06-12 16:31:54 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 16:53:44 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-12 18:05:36 +02:00
2018-06-03 04:41:19 +02:00
2018-06-13 12:05:17 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-14 19:19:14 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-05 12:00:11 +02:00
2018-06-10 04:40:02 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-11 09:48:20 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-14 21:28:39 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-15 17:36:27 +02:00
2018-06-03 04:41:19 +02:00
2018-06-14 21:28:39 +02:00
2018-05-01 02:39:26 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-15 08:42:15 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-14 21:28:39 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-11 12:03:38 +02:00
2018-06-11 10:35:42 +02:00
2018-06-12 16:31:54 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-05-01 02:39:26 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 16:31:54 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-11 10:53:23 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 00:27:35 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-12 12:19:14 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-10 04:40:02 +02:00
2018-06-03 04:41:19 +02:00
2018-06-11 16:59:37 +02:00
2018-06-15 12:12:26 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00
2018-06-03 04:41:19 +02:00