https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22593

Josef Moravec <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #87075|0                           |1
        is obsolete|                            |

--- Comment #4 from Josef Moravec <[email protected]> ---
Created attachment 87130
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=87130&action=edit
Bug 22593: Fix bad ternaries after bug 22008

A series of ternaries were introduced when we moved to add_debit which
defaulted to 'user 0' should a userenv not be set.  This was incorrect
as userenv may well not be set (during cronscript runs for example) and
the new constraint would not allow such a default. We switch to 'undef'
here to satisfy the constraint.

Test plan
1) Ensure you have data in your system that would be caught by the
longoverdues cronjob.
2) Ensure you're sysprefs are setup to charge for lost items
3) Run the script and varify it runs to completion without errors

Signed-off-by: Martin Renvoize <[email protected]>

Signed-off-by: Kyle M Hall <[email protected]>

Signed-off-by: Josef Moravec <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to