It appears that some javascript in the file “input.js” has changed and is breaking some plugins that extend ACF.
I’m using a plugin that extends the Relationship Field (https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields/)
This plugin makes use of the following JS
acf.add_action('ready append', function( $el ){
acf.get_fields({ type : 'widget_field'}, $el).each(function(){
acf.fields.relationship.set({ $el : $(this) }).init();
});
});
It appears that in the previous version of ACF PRO (5.0.3) acf.fields.relationship has a method of “set” but in the new version(5.1.1), this method no longer exists.
What are the steps to adjust the js to properly extend the relationship field now that the “set” method has been removed?
I have exactly the same problem with the same ThirdParty plugin. I really hope a solution will be find.
Thanks,
I was able to get this working for ACF Pro 5.1.4.
Here’s the input.js file after making my changes:
https://gist.github.com/jasonbahl/f416856945bb98bae512
I haven’t tested with any version of ACF other than 5.1.4, so there might be some backward compatibility issues.
I also had to change some code in widget-relationship-field-v5.php to accommodate some changes to CSS classes, etc for the list items to render correctly.
See that file here:
https://gist.github.com/jasonbahl/6efc490d87bf4a4656d8