Automatically closed - issue fixed for 2 weeks with no activity.
I believe the fields on the Create linked drupal user account related to "Activate account" (and possibly others) may have stopped working with the following commit: https://git.drupalcode.org/project/civicrm_entity/-/commit/321713088b57d...
As seen added here about 4 months ago, are checks to see if the field is empty: https://git.drupalcode.org/project/civicrm_entity/-/commit/321713088b57d...
if (empty($is_active)) {
$is_active = $this->getContextDefinition('is_active')->getDefaultValue();
}
However, I believe the Boolean field, if set to FALSE is tripping this check, and thus always setting it to be TRUE. See https://www.php.net/manual/en/function.empty.php for explanation: "Determine whether a variable is considered to be empty. A variable is considered empty if it does not exist or if its value equals false"
See the following simplified example:
<?php
$is_active = FALSE;
print "initial:" . json_encode($is_active) . "<br />"; // initial:false
if (empty($is_active)) {
$is_active = TRUE;
}
print "after:" . json_encode($is_active); // after:true
Suggest changing this to"$is_active !== NULL" or similar maybe?
Fixed
3.1
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
Automatically closed - issue fixed for 2 weeks with no activity.