From 1c3dc9f7d1cb7567d1edf051b4917477f299d7a2 Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 09:23:28 +0100 Subject: [PATCH 01/10] use WorkflowEditForm in WorkflowEditFormView --- plone/app/contentrules/actions/workflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/contentrules/actions/workflow.py b/plone/app/contentrules/actions/workflow.py index 211e42a..23c95df 100644 --- a/plone/app/contentrules/actions/workflow.py +++ b/plone/app/contentrules/actions/workflow.py @@ -108,4 +108,4 @@ class WorkflowEditForm(ActionEditForm): class WorkflowEditFormView(ContentRuleFormWrapper): - form = WorkflowAddForm + form = WorkflowEditForm From b6f2dcb6c45fbd6ba487f4e5a42e73ed063ca7d8 Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 09:24:01 +0100 Subject: [PATCH 02/10] use NotifyEditForm in NotifyEditFormView --- plone/app/contentrules/actions/notify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/contentrules/actions/notify.py b/plone/app/contentrules/actions/notify.py index a03cd64..5101041 100644 --- a/plone/app/contentrules/actions/notify.py +++ b/plone/app/contentrules/actions/notify.py @@ -98,4 +98,4 @@ class NotifyEditForm(ActionEditForm): class NotifyEditFormView(ContentRuleFormWrapper): - form = NotifyAddForm + form = NotifyEditForm From ebb52709b08b49816e806f4cab26523c5089b680 Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 09:28:29 +0100 Subject: [PATCH 03/10] add news --- news/75.bugfix | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 news/75.bugfix diff --git a/news/75.bugfix b/news/75.bugfix new file mode 100644 index 0000000..0052fa3 --- /dev/null +++ b/news/75.bugfix @@ -0,0 +1,3 @@ +- use WorkflowEditForm in WorkflowEditFormView +- use NotifyEditForm in NotifyEditFormView +[1letter] From e62c8fa0c09b23fba412fcc4a864448f9e8bddbf Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 09:33:52 +0100 Subject: [PATCH 04/10] lint news format file --- news/75.bugfix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/news/75.bugfix b/news/75.bugfix index 0052fa3..37f7e2d 100644 --- a/news/75.bugfix +++ b/news/75.bugfix @@ -1,3 +1,3 @@ -- use WorkflowEditForm in WorkflowEditFormView -- use NotifyEditForm in NotifyEditFormView -[1letter] +use WorkflowEditForm in WorkflowEditFormView +use NotifyEditForm in NotifyEditFormView +[1letter] \ No newline at end of file From f92350d11e0b5f36c94f8cd1c933f5c157ed6950 Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 09:34:51 +0100 Subject: [PATCH 05/10] add blank line to newsfile --- news/75.bugfix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/news/75.bugfix b/news/75.bugfix index 37f7e2d..4cf0af1 100644 --- a/news/75.bugfix +++ b/news/75.bugfix @@ -1,3 +1,3 @@ use WorkflowEditForm in WorkflowEditFormView use NotifyEditForm in NotifyEditFormView -[1letter] \ No newline at end of file +[1letter] From 5932d49539506447ac80cc15f2f035a218cf2444 Mon Sep 17 00:00:00 2001 From: 1letter <1letter@gmx.de> Date: Thu, 7 Nov 2024 10:31:54 +0100 Subject: [PATCH 06/10] fix controlpanel view, dont render card element if no rules defined --- .../app/contentrules/browser/templates/controlpanel.pt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plone/app/contentrules/browser/templates/controlpanel.pt b/plone/app/contentrules/browser/templates/controlpanel.pt index 021f1f6..e6c648b 100644 --- a/plone/app/contentrules/browser/templates/controlpanel.pt +++ b/plone/app/contentrules/browser/templates/controlpanel.pt @@ -114,12 +114,14 @@ -