-elsif ( $query->param('action') eq 'update' ) {
- my $colId = $query->param('colId');
- my $title = $query->param('title');
- my $description = $query->param('description');
-
- my ( $createdSuccessfully, $errorCode, $errorMessage )
- = UpdateCollection( $colId, $title, $description );
-
- $template->param(
- previousActionUpdate => 1,
- updatedTitle => $title,
- );
-
- if ( $createdSuccessfully ) {
- $template->param( updateSuccess => 1 );
- } else {
- $template->param( updateFailure => 1 );
- $template->param( failureMessage => $errorMessage );
- }
+elsif ( $action eq 'update' ) {
+ my $colId = $query->param('colId');
+ my $title = $query->param('title');
+ my $description = $query->param('description');
+
+ my ( $createdSuccessfully, $errorCode, $errorMessage ) =
+ UpdateCollection( $colId, $title, $description );
+
+ $template->param(
+ previousActionUpdate => 1,
+ updatedTitle => $title,
+ );
+
+ if ($createdSuccessfully) {
+ $template->param( updateSuccess => 1 );
+ }
+ else {
+ $template->param( updateFailure => 1 );
+ $template->param( failureMessage => $errorMessage );
+ }