-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fix form fields not loading when custom properties are defined #14048
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
Conversation
* Improve grammar for unhide * Fix test
Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk>
* [UI] Replaces table action button `arrow-down` with `more-2` icon (mautic#13841) * [UI] Replaces table action button `arrow-down` with `more-2` icon This replaces the icon for the action toggle button in tables (e.g. contact list table or segment list table) with a 3 dot icon. The previous arrow down icon indicates that an collapsed element would get unfolded/shown. This is not the case in these tables. The button shows more actions. In any UI that I know a 3 dot icon is used for that. The arrow down icon would be more suitable if it would show more details on click. Hence, this PR. * TASK: Reverts change for `page_actions.html.twig` Co-authored-by: Anderson, from Dropsolid <116097999+andersonjeccel@users.noreply.github.com> --------- Co-authored-by: Anderson, from Dropsolid <116097999+andersonjeccel@users.noreply.github.com> * add js code to hide profile pic if missing (mautic#13838) * Segment membership as a new filter for dynamic email content (mautic#13528) * Merge pull request mautic#1088 from mautic-inc/MAUT-4688 Maut 4688 - Use segment membership as a filter for dynamic content in email * Changes needed after rebase to M5 * Merge pull request mautic#1407 from acquia/MAUT-5729 MAUT-5729 Dynamic Content Error - Segment Membership filter not showing correct content * Fixing STAN * CS fixes * Test fix * test fix part 2 * Adding back JS methods removed in a bad conflict resolution --------- Co-authored-by: Lukáš Drahý <lukas@drahy.net> Co-authored-by: Rohit Pavaskar <66303837+rohitp19@users.noreply.github.com> Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk> * [UI] Increased icon size (mautic#13825) * increased icon size * decrease by 1px * Make the search regular expression match both "&" and "&" for link replacement within an email body (mautic#13858) * Guide users to build optimized segments (mautic#13860) * Merge pull request mautic#2172 from acquia/MAUT-11343 MAUT-11343 : Guide users to build optimized segments * fix twig file issue * Apply suggestions from code review Co-authored-by: John Linhart <admin@escope.cz> * push suggested changes --------- Co-authored-by: John Linhart <admin@escope.cz> * fix CSS flexbox broken in campaign insert clone view * Revert "[UI] Replaces table action button `arrow-down` with `more-2` icon (mautic#13841)" This reverts commit fadcf26. * Revert "Segment membership as a new filter for dynamic email content (mautic#13528)" This reverts commit 71031b7. * Revert "[UI] Increased icon size (mautic#13825)" This reverts commit c00df3c. * Revert "Make the search regular expression match both "&" and "&" for link replacement within an email body (mautic#13858)" This reverts commit d3e6ceb. * Revert "Guide users to build optimized segments (mautic#13860)" This reverts commit bdabc26. * Revert "add js code to hide profile pic if missing (mautic#13838)" This reverts commit 76dd7d6. --------- Co-authored-by: putzwasser <26040044+putzwasser@users.noreply.github.com> Co-authored-by: John Linhart <admin@escope.cz> Co-authored-by: Lukáš Drahý <lukas@drahy.net> Co-authored-by: Rohit Pavaskar <66303837+rohitp19@users.noreply.github.com> Co-authored-by: Ruth Cheesley <ruth@ruthcheesley.co.uk> Co-authored-by: Miroslav Fedeleš <miroslav.fedeles@gmail.com> Co-authored-by: Saurabh Gupta <48244990+dadarya0@users.noreply.github.com>
mautic#10306) * fix: [DPMMA-1020] fix getLookupChoiceListAction for search with special characters * fix: [DPMMA-1020] phpstan
* fix: [DPMMA-2661] Correct form mapper Mautic 5 * feat: [DPMMA-2661] Correct CSFixer
…tracking script (mautic#13859) This fixes mautic#13355 This removes the HTML escaping logic in the onConfigSave method of `ConfigSubscriber`. This change prevents the UI from displaying escaped HTML in the custom tracking JS field after saving the form. Previously, the form erroneously escaped HTML entities. By removing this code, users will now see the original HTML as expected when they revisit the form. The main issue, however, was that re-saving meant saving escaped HTML which would break inserting the tracking HTML code. **Before** 1. Add custom HTML in `Configuration > Landing Page Settings > Analytics script (i.e. Google Analytics) ` 2. Save 3. Open this view again → see escaped HTML 4. Save again 5. Open a landing page and see escaped HTML tracking code injected. **After** 1. Add custom HTML in `Configuration > Landing Page Settings > Analytics script (i.e. Google Analytics) ` 2. Save 3. Open this view again → see unescaped HTML 4. Save again 5. Open a landing page and see correct HTML tracking code injected.
Hi @david-gap and welcome to the community! Unfortunately, it looks like something has gone a bit wonky with your PR - there don't seem to be any changes and you have a bunch of commits which don't seem to be relevant. Did you need some assistance with making the PR? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5.x #14048 +/- ##
============================================
- Coverage 62.52% 62.51% -0.01%
Complexity 34353 34353
============================================
Files 2260 2260
Lines 102740 102740
============================================
- Hits 64234 64233 -1
- Misses 38506 38507 +1 |
…es, load the custom properties
Hi @RCheesley |
It looks like you need to update your fork, because it's out of date with mautic/mautic. This is usually done by rebasing - read more about that here: https://docs.ansible.com/ansible/latest/dev_guide/developing_rebasing.html |
This is actually a good solution for the problem mentioned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a good fix.
Hi @david-gap could you please rebase this on the 5.2 branch so it can be considered for merging? Thanks! |
I've just applied the PR template which should be used - @david-gap could you drop in some test instructions for people who are reviewing/testing? Many thanks! |
This pull request has been mentioned on Mautic Forums. There might be relevant details there: https://forum.mautic.org/t/drop-down-in-form-not-showing-custom-labels/30882/3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as described!
2 reviews, good to merge i guess |
Description
After Updating Mautic from 4.4.11 to 5.0.2 there is an issue with the form fields checkbox, radio and select.
If the input field is mapped with a contact/company field and custom properties are defined, the assigned contact/company fields list choices are loading.
Custom properties

Output

How can we reproduce this issue?
Step 1: Create a form
Step 2: Add field type radio
Step 3: Connect field with the contact title field
Step 4: Define custom properties
Step 5: See form output
With this PR, the issue should be resolved and the form fields should work properly.
📋 Steps to test this PR: