Update the org unit close date Perl live test to match API changes for
emergecy org unit close dates handling.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Chris Sharp <csharp@georgialibraries.org>
sub update_closed_date {
my $aoucd = shift;
$aoucd->reason($aoucd->reason . ' modified');
- return $apputils->simplereq(
+
+ my $cd = $apputils->simplereq(
'open-ils.actor',
'open-ils.actor.org_unit.closed.update',
$script->authtoken, $aoucd);
+
+ return ref $cd eq 'Fieldmapper::actor::org_unit::closed_date';
}
sub delete_closed_date {