Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow cloning archived forms #2490

Merged
merged 2 commits into from
Jan 15, 2025
Merged

Conversation

Chartman123
Copy link
Collaborator

This closes #2019 by showing the button and handling the events in the frontend and by adjusting the backend to unset the state of the cloned form. It also adds a change to unset the expires timestamp when a form gets cloned.

@Chartman123 Chartman123 added enhancement New feature or request php PHP related ticket javascript Javascript related ticket 3. to review Waiting for reviews feature: 📑 form creation labels Jan 14, 2025
@Chartman123 Chartman123 added this to the 5.0 milestone Jan 14, 2025
@Chartman123 Chartman123 self-assigned this Jan 14, 2025
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.44%. Comparing base (de004c2) to head (8b994f8).
Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2490      +/-   ##
============================================
+ Coverage     43.43%   43.44%   +0.01%     
  Complexity      881      881              
============================================
  Files            75       75              
  Lines          3357     3358       +1     
============================================
+ Hits           1458     1459       +1     
  Misses         1899     1899              

@Chartman123 Chartman123 force-pushed the enh/clone-archived-form branch from bf0fc08 to 50f1d75 Compare January 14, 2025 20:23
This makes sure that a cloned form is always in active state and doesn't expire

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
This enables the clone button for archived forms and emits the neccessary events to Forms.vue

Signed-off-by: Christian Hartmann <chris-hartmann@gmx.de>
@Chartman123 Chartman123 force-pushed the enh/clone-archived-form branch from 50f1d75 to 8b994f8 Compare January 15, 2025 14:58
@Chartman123 Chartman123 merged commit c73f0ed into main Jan 15, 2025
54 checks passed
@Chartman123 Chartman123 deleted the enh/clone-archived-form branch January 15, 2025 15:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request feature: 📑 form creation javascript Javascript related ticket php PHP related ticket
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to clone archived forms
2 participants