πŸ‡³πŸ‡ΏNew Zealand @somatick

Account created on 1 August 2008, almost 16 years ago
#

Recent comments

πŸ‡³πŸ‡ΏNew Zealand somatick

Patch attached which separates the condition into two conditions in the template

πŸ‡³πŸ‡ΏNew Zealand somatick

Oops I didn't notice the .txt extension when I saved locally. Same patch

πŸ‡³πŸ‡ΏNew Zealand somatick

Patch attached which adds current display to the container class name

πŸ‡³πŸ‡ΏNew Zealand somatick

See attached patch.

It did not appear to be possible to disable a view in a normal install hook, the suggested approach was to use hook_install_tasks from the profile itself

πŸ‡³πŸ‡ΏNew Zealand somatick

After further discussion it was decided to disable the publish and unpublish actions on the content audit view by default

> I am happy for now to remove the publish un-publish ones from the content audit completely. That is definitely a workflow task! The audit is more for transparence, decision making, and tagging ...

The latest patch includes the above fix as well as the removal of the publish/unpublish options

πŸ‡³πŸ‡ΏNew Zealand somatick

Ok phew patch #4 applied.

The view now appears to be working, but testing some of the individual actions there are some other issues/strange interactions exposed.

Using the 'Modify field values' action, produces an error from the rabbit hole module, which could be related to this issue:
https://www.drupal.org/project/rabbit_hole/issues/3383171 πŸ› Error: Call to undefined method Drupal\entity_browser\Form\EntityBrowserForm::getEntity() Needs review
Rabbit hole is required by the main sector project so if it is to be patched or updated will likely need to be done there.

Also choosing a publish or unpublish action if content moderation is enabled fails and produces a message "Cannot directly (un)publish moderated entities" - which comes from core, however there don't seem to be any suitable actions available for modifying the status of moderable entities.

πŸ‡³πŸ‡ΏNew Zealand somatick

Sheesh. I think the encoding was bung with that one. Third time's the charm.

πŸ‡³πŸ‡ΏNew Zealand somatick

Pasted too hastily and missed a line, use this patch.

πŸ‡³πŸ‡ΏNew Zealand somatick

Patch with updated view config yml attached

Production build 0.69.0 2024