Commit b363c743 authored by Gary Wong's avatar Gary Wong
Browse files

When reserving in impotent mode, indicate request pending/approved state.

The same exit code applies as when running for real: 0 means the
reservation is (would be) approved; 1 means the reservation is impossible;
2 means the reservation is possible but requires admin approval.
parent 67141c59
......@@ -471,7 +471,7 @@ while( 1 ) {
exit( 1 );
}
}
exit( 0 ) if( $impotent );
exit( $approve ? 0 : 2 ) if( $impotent );
next if( !defined( Reservation->BeginTransaction( $version ) ) );
$res->Book( $modify_idx );
Reservation->EndTransaction();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment