Created on 15 September 2020, almost 4 years ago
Updated 2 November 2023, 8 months ago

When adding this handler I get the following ajax error

An AJAX HTTP error occurred.
Result Code: 200
Debugging information follows.
Path: /admin/structure/webform/manage/apsjobs/handlers/add/compare_fields_validator
StatusText: OK ResponseText:
"AjaxError"
__proto__: Error at /core/misc/ajax.js?v=9.0.5:108:32 at /core/misc/ajax.js?v=9.0.5:651:3

🐛 Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

🇦🇺Australia Stephen Ollman Canberra

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇷Brazil AndersonMendes0

    I have the same problem.

  • First commit to issue fork.
  • @kurttrowbridge opened merge request.
  • Status changed to Needs review 8 months ago
  • 🇺🇸United States KurtTrowbridge

    Hi! I ran into this today too on a site running Drupal 9.5.11. I was able to get the newly added handler to open its configuration form after making some adjustments, matching a couple other Webform handlers I referenced. After that, I hit some issues related to the Comparison Operator field due to how the title was formatted, so I provided an adjustment that moves the additional information for that field into a description. Lastly, I had an issue saving the configuration form because it tried to validate the comparison operator based on the value of $values['compare']['operator'], when the variable appears like it should be $values['operator']–only the left and right values are nested under $values['compare'].

    Hopefully that all makes sense. I confirmed that the comparison was working for me following those adjustments, and confirmed that the file meets Drupal's code standards (one other adjustment needed for that was to put the use statements in alphabetical order). Everything I've mentioned is in the provided merge request, but I'd definitely appreciate a review—dependency injection is not my strong suit, and a couple of the fixes were a little unexpected to me.

    Thanks!

Production build 0.69.0 2024