Skip to content

Commit

Permalink
Add error param when updating project doc with empty title
Browse files Browse the repository at this point in the history
Added missing error_parameter() call so that when attempting to update
an existing project document with an empty Title, the error message
indicates which field is required.

Fixes #17407
  • Loading branch information
dregad committed Jun 11, 2014
1 parent 7ffceea commit 76da88a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions proj_doc_update.php
Expand Up @@ -46,6 +46,7 @@
access_ensure_project_level( config_get( 'upload_project_file_threshold' ), $t_project_id );

if ( is_blank( $f_title ) ) {
error_parameters( lang_get( 'title' ) );
trigger_error( ERROR_EMPTY_FIELD, ERROR );
}

Expand Down

0 comments on commit 76da88a

Please sign in to comment.