Hello,
Sorry about spamming, but i got one more "bug", it's only a notices but it's annoying.
// @file permissions_by_term/src/Service/AccessStorage.php
// ...
/**
* @param array $tids
*
* @return array
*/
public function getUserTermPermissionsByTids($tids) {
$uids = [];
foreach ($tids as $tid) {
$uids[] = array_shift($this->getUserTermPermissionsByTid($tid)); // array_shift causing the notices.
}
return $uids;
}
Create a temp variable for this, more reading:
http://php.net/manual/en/function.array-shift.php
My PHP Version is PHP 7.0
Comments
Comment #2
JonathanFontesCaetsu commentedAny news about this?
Comment #3
jepster_Yesterday I have created an new release: https://www.drupal.org/project/permissions_by_term/releases/8.x-1.28. Is your problem still present there?
Comment #4
JonathanFontesCaetsu commentedAhh sorry, my bad. I will test and later i tell you still exist the issue.
Comment #5
JonathanFontesCaetsu commentedNope, the problem persist. When i change from:
to:
I got the error on the next function which is:
And when i switch to this:
I got another different error:
But i think this is another issue... :/
Comment #6
jepster_Thanks for the reporting. I will check this one asap.
Comment #8
jepster_I have published the fix in 8.x-1.29: https://www.drupal.org/project/permissions_by_term/releases/8.x-1.29.
Thanks for reporting!
Comment #9
JonathanFontesCaetsu commentedHey,
The error has gone, now can you close the issue. All good. Thanks for the great work.