Skip to content

Commit

Permalink
Force commit in lift_embargoes
Browse files Browse the repository at this point in the history
Fixes eprints#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).
  • Loading branch information
Tim Brody committed Feb 11, 2013
1 parent 0f6a920 commit c5d7e52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/lift_embargos
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
} );
Expand Down

0 comments on commit c5d7e52

Please sign in to comment.