From c5d7e524e7ebbb8cecd9d6a3d4e841395d375efe Mon Sep 17 00:00:00 2001 From: Tim Brody Date: Mon, 11 Feb 2013 14:14:10 +0000 Subject: [PATCH] Force commit in lift_embargoes Fixes #21. Most of the time lift_embargoes will cause an eprint commit (/revision) due to fileinfo changing. However if there is no icon on the document the eprint will not be committed, causing any triggered behaviour (e.g. full_text_status) to not occur. This change calls a force-commit on the document (which will force-commit the eprint in turn). --- bin/lift_embargos | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/lift_embargos b/bin/lift_embargos index 852272220..b9edde81a 100755 --- a/bin/lift_embargos +++ b/bin/lift_embargos @@ -144,8 +144,7 @@ $list->map( sub { { $doc->set_value( "security", "public" ); $doc->set_value( "date_embargo", undef ); - $doc->commit; - $eprint->commit; + $doc->commit( 1 ); # pass force through to parent eprint $eprint->generate_static; } } );