Skip to content

Fixed #73 errors with draft emails#74

Open
harris1 wants to merge 1 commit intoCLAMP-IT:mainfrom
harris1:main
Open

Fixed #73 errors with draft emails#74
harris1 wants to merge 1 commit intoCLAMP-IT:mainfrom
harris1:main

Conversation

@harris1
Copy link

@harris1 harris1 commented Sep 4, 2024

Saving a draft would show the previous form values. Also a bad recipient in a saved draft would prevent using that draft.

Moved code around so the $form email_form object contains the data the request should work on. Before it was a mix of accesing the request, $form or fetched database data.

Moved the mailto to two s logic to class email_form. Fixes needing $form to get mailto and needing mailto to create the form.

Saving a draft would show the previous form values. Also a bad
recipient in a saved draft would prevent using that draft.

Moved code around so the $form email_form object contains the data the
request should work on. Before it was a mix of accesing the request,
$form or fetched database data.

Moved the mailto to two <select>s logic to class email_form. Fixes needing
$form to get mailto and needing mailto to create the form.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant