backdrop-contrib / search_api

Provides a generic API for modules offering search capabilities
GNU General Public License v2.0
0 stars 6 forks source link

_element_validate_integer not found #38

Closed herbdool closed 1 year ago

herbdool commented 1 year ago

TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function "_element_validate_integer" not found or invalid function name in _form_validate() (line 1497 of /app/httpdocs/core/includes/form.inc).

I get this when trying to delete a search index from the individual index such as admin/config/search/search_api/index/default_node_index/edit. If I delete from the index list then it's okay.

It might be from being called in search_api_admin_index_edit of search_api.admin.inc. The function existed in Drupal 7 but not in Backdrop. Some other modules like Rules just copy the function and make it specific to the module. Or better, would be to change the form element (cron_limit) to a number field and use that https://docs.backdropcms.org/api/backdrop/core!includes!drupal.inc/function/element_validate_integer/1

herbdool commented 1 year ago

I can create a PR

herbdool commented 1 year ago

I almost created a PR but noticed it was already fixed. So instead, would you be able to create a new release @earlyburg? (After merging some bugs?) Thanks.

argiepiano commented 1 year ago

I did the same thing lol!

argiepiano commented 1 year ago

This was fixed in #34