Bug 14591: (QA follow-up) Optimize DateTime passing
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 14 Mar 2019 16:30:55 +0000 (16:30 +0000)
committerroot <root@f1ebe1bec408>
Fri, 15 Mar 2019 12:14:03 +0000 (12:14 +0000)
commita8c473c69160634fb18c0dc9de3b72a011ccd719
treef54a3541b90836353fca25395734c58694f99f1a
parent004609e46814791fac540e1c8bfb21f647758143
Bug 14591: (QA follow-up) Optimize DateTime passing

We were passing around possibly undefined $return_date variables from
AddReturn and then instantiating a new DateTime object as a default for
each routine. This followup sets the default higher up the stack within
AddReturn which provider clearer logic and a small performance
improvment.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Circulation.pm