Closed (fixed)
Project:
Rebuild Ajax Forms
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Nov 2018 at 19:07 UTC
Updated:
4 Dec 2018 at 21:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
firewaller commentedPatch attached.
Comment #3
firewaller commentedComment #4
firewaller commentedUpdated patch with improved watchdogs
Comment #5
Neo13 commentedPatch fails to apply.
Comment #6
firewaller commented@Neo13 thanks for looking at this.
When I pull the latest changes via git and apply the patch with "git apply -v /[PATH]/2682059-rebuild_ajax_forms-module-rewrite-3014335-4.patch" or "patch -p1 < /[PATH]/2682059-rebuild_ajax_forms-module-rewrite-3014335-4.patch", the patch applies correctly in both instances.
Can you please confirm that you're using a cleanly pulled updated version of the module, the correct patch, and the appropriate patch command?
Comment #7
bmunslow commentedHi @Neo13, I can confirm patch #4 applies correctly to latest version of the module.
@firewaller
Thanks for looking into this, your patches are very welcome.
I've looked into your patch, and it looks good!
You had a good idea to create a debugging flag that allows to turn it on or off more easily.
Just found one minor issue, the
rebuild_ajax_forms_formfunction is defined twice: both in therebuild_ajax_forms.admin.incfile and in therebuild_ajax_forms.modulefile.Also, the
rebuild_ajax_forms.admin.incfile is never loaded, so we should settle on either way of loading the settings form, personally I think it should belong to therebuild_ajax_forms.admin.incfile, who knows, we might need to expand on it one day.Also, what do you think if we set the admin path of the settings form into the 'Development' area, since we are basically addressing developers who want to turn on/off debugging mode?
Could you change the settings path to
admin/config/development/rebuild-ajax-forms?Thanks again for your work and interest on this module, looking forward to hearing your thoughts on this.
Comment #8
firewaller commented@bmunslow thanks for the reply and the feedback. I'll clean up based on your suggestions and probably have a new patch tomorrow.
Comment #9
firewaller commentedAttached is an updated patch with the above changes.
Comment #10
Neo13 commentedI am sorry for the previous comment. The problem was with my IDE. I applied the patch and everything works OK.
By the way I have an issue when using this module (even before patching) that I get ajax error 200 on every page where there is an ajax form to replace. It is parseerror and empty result text. Do you have any idea what might be causing this?
Comment #11
firewaller commented@Neo13 no worries.
IRT your AJAX error, it is probably due to the callback you are using. I might recommend opening a new issue in the queue posting your code so we can work it out separately, I'd be happy to take a look.
Comment #12
Neo13 commented@firewaller Thanks. I figured it out already - Correctly return empty content for jQuery >= 1.9.
Comment #13
firewaller commentedComment #14
bmunslow commentedComment #16
bmunslow commentedChanges commited, thanks for the work.
@firewaller, your latest patch didn't include any of the changes I mentioned, perhaps you uploaded the wrong patch... in any case, I just fixed the issues myself and also did a bit of refactoring.
Closing issue.
Comment #17
bmunslow commentedComment #18
firewaller commented@bmunslow whoops. I definitely made the changes, but must have posted the wrong patch. Thanks for sorting that out!