Skip to content

Commit f7cf0ab

Browse files
committed
Update uploadPerform to set "Initial revision" if it applies
Backported from PR midasplatform#145 This commit ensures that the first revision of new item will always be associated with the comment "Initial revision". This applies to new files uploaded using either the web apis or the web interface. The behavior is now consistent with the initial message set in UploadComponent::createLinkItem() and ApisystemComponent::uploadGeneratetoken()
1 parent a15fc99 commit f7cf0ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/controllers/components/ApisystemComponent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ function uploadPerform($args)
551551
}
552552
$uploadComponent = MidasLoader::loadComponent('Upload');
553553
$license = null;
554-
$changes = array_key_exists('changes', $args) ? $args['changes'] : '';
554+
$changes = array_key_exists('changes', $args) ? $args['changes'] : 'Initial revision';
555555
$revisionNumber = null;
556556
if(isset($revision) && $revision !== false)
557557
{

0 commit comments

Comments
 (0)