[Koha-bugs] [Bug 24754] UserEnv not set for ISLDI requests
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Feb 28 16:35:31 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24754
--- Comment #3 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
Comment on attachment 99768
--> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=99768
Bug 24754: Set userenv for ilsdi requests
Review of attachment 99768:
--> (https://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=24754&attachment=99768)
-----------------------------------------------------------------
::: opac/ilsdi.pl
@@ +129,5 @@
>
> +# Set the userenv
> +C4::Context->_new_userenv(1);
> +C4::Context->set_userenv(
> + undef, undef, undef, 'CRON', 'CRON', undef,
OK.. so those are being used as 'firstname' and 'surname'.. weird..
CRON is probably OK
@@ +132,5 @@
> +C4::Context->set_userenv(
> + undef, undef, undef, 'CRON', 'CRON', undef,
> + undef, undef, undef, undef, undef
> +);
> +C4::Context->interface('opac'); #FIXME 'ilsdi' should be a valid value?
Valid values are currently 'api', 'opac', 'intranet', 'sip', 'cron' and
'commandline'..
I reckon 'api' would fit reasonably well here?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list