Files
sure/app/models
Alex Hatzenbuhler 30d3eef67f Fix AND prefix on rule form (#2234)
* Fix AND prefix on rule form

This new condition prefix data target is used to ensure the AND prefix is added/removed to additional conditions/groups when there aren't any saved conditions yet.

* Ensure the condition group "Add condition" button is type button to avoid form submission

* Add prefix update when removing a subcondition

* Use data condition to update the prefix on conditions, condition groups, and subconditions

* Use condition remove instead of element remove for condition groups so prefix logic runs

* Add back explicit show_prefixes to ensure subconditions never have a prefix

* Run the prefix update runs on a load of a form, which handles prefixes on an edit since no conditions change

* Ensure saved items that are marked for removal don't impact the index

* Simplify logic since we don't process subconditions

* Clean up comments

* Add primary_condition_title field to rule model
2025-05-13 10:34:41 -04:00
..
2025-03-28 13:08:22 -04:00
2025-05-07 14:10:56 -04:00
2024-02-02 09:05:04 -06:00
2024-10-18 11:26:58 -05:00
2025-04-18 11:39:58 -04:00
2024-10-18 11:26:58 -05:00
2024-11-08 09:58:35 -06:00
2024-08-23 10:06:24 -04:00
2024-08-23 09:33:42 -04:00
2025-05-07 22:19:09 -04:00
2025-05-13 10:34:41 -04:00
2024-10-18 11:26:58 -05:00
2025-03-28 13:08:22 -04:00
2024-10-24 16:36:50 -05:00
2024-05-23 08:09:33 -04:00
2025-03-28 13:08:22 -04:00
2025-05-06 14:05:21 -04:00