Bug 5578 Followup: Hard Due Dates break hard-coded default circ rule
authorIan Walls <ian.walls@bywatersolutions.com>
Thu, 31 Mar 2011 19:33:17 +0000 (15:33 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Thu, 31 Mar 2011 20:10:45 +0000 (09:10 +1300)
commit1d6fa48d19b6e5c5ab5c0d16f17a588f56a39870
tree2cf21f2a8195fb0dda910d85fa232f8106472d86
parente57dadf762101cfb7371c3d2c93e8163a2ace69f
Bug 5578 Followup: Hard Due Dates break hard-coded default circ rule

If you do not have an applicable circulation rule for a combination of branch,
item type and patron category defined in your Circulation and Fines rules,
the Hard Due Dates development prevents circulation by introducing an error:

Can't call method "output" on an undefined value at /home/magnus/kohahead/C4/Circulation.pm line 2713

This is because the $hardduedate variable is not defined.  Changing the conditional
to check it, rather that it's output, fixes the issue.  That's what this patch does.

Is this the longest commit message for a single line fix?  Maybe.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Circulation.pm