Warning: in_array() expects parameter 2 to be array, null given in crud_log_taxonomy_term_update() (line 123 of sites/all/modules/contrib/crud_log/crud_log.module).

Created on 6 December 2023, over 1 year ago

Problem/Motivation

This warning is shown when trying to edit a taxonomy term when no vocabulary is selected in CRUD log settings.
Warning: in_array() expects parameter 2 to be array, null given in crud_log_taxonomy_term_update() (line 123 of sites/all/modules/contrib/crud_log/crud_log.module).

Steps to reproduce

  1. Edit the CRUD log settings to enable logging for Update operation on taxonomy terms.
  2. Do not select any vocabularies in the form.
  3. Save the settings

Proposed resolution

  1. If Node operations are selcted to be logged and no content type is selected, we assume that selected operations for all the nodes should be logged.
  2. When no vocabulary is selected, and an operation is we assume that selected operations for all the terms should be logged.
🐛 Bug report
Status

Needs review

Version

1.2

Component

Code

Created by

🇮🇳India sushyl@gmail.com Pune

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

Comments & Activities

Production build 0.71.5 2024