Problem/Motivation
The JS Cookie dependency added in 4.0.1 does not get enabled after running `update.php`.
Steps to reproduce
-
composer require drupal/fpa:4.0.0 drush pm:enabe fpa -y composer require drupal/fpa:4.0.1 drush updb -y drush pm:list --filter js_cookie - Observe that the dependency is not enabled.
Proposed resolution
It seems the `update.php` process does not ensure newly added dependencies are enabled.
Implement a hook_update_N() to ensure this dependency is enabled.
Issue fork fpa-3541877
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
astonvictor commentedHi there,
Implemented a simple update hook to force enable the module.
Thanks in advance
Comment #5
vinodhini.e commentedHi,
Tested the module on Drupal 10.5.1.
Followed the steps mentioned in the issue but could not reproduce the problem.
The JS Cookie dependency added in 4.0.1 was installed and enabled successfully after running update.php (or drush updb) without applying the merge request.
Steps followed:
composer require drupal/fpa:4.0.0
drush pm:enable fpa -y
composer require drupal/fpa:4.0.1
drush updb -y
drush pm:list --filter js_cookie
Thanks.
Comment #7
astonvictor commentedthanks
fixed in the dev version