@@ -269,13 +269,13 @@ - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInte
269
269
title = NSLocalizedString(@" show_error_password_enforced" , nil );
270
270
}
271
271
} else if (![ShareUtils hasExpirationRemoveOptionAvailable ]) {
272
- NSString *nDays = [NSString stringWithFormat: @" %ld " , APP_DELEGATE.activeUser.capabilitiesDto.filesSharingExpireDateDaysNumber];
272
+ NSString *nDays = [NSString stringWithFormat: @" %d " , APP_DELEGATE.activeUser.capabilitiesDto.filesSharingExpireDateDaysNumber];
273
273
title = [NSLocalizedString(@" show_error_expiration_enforced" , nil ) stringByReplacingOccurrencesOfString: @" $nDays" withString: nDays];
274
274
}
275
275
break ;
276
276
case 2 :
277
277
if ([ShareUtils hasOptionLinkNameToBeShown ] && ![ShareUtils hasExpirationRemoveOptionAvailable ]) {
278
- NSString *nDays = [NSString stringWithFormat: @" %ld " , APP_DELEGATE.activeUser.capabilitiesDto.filesSharingExpireDateDaysNumber];
278
+ NSString *nDays = [NSString stringWithFormat: @" %d " , APP_DELEGATE.activeUser.capabilitiesDto.filesSharingExpireDateDaysNumber];
279
279
title = [NSLocalizedString(@" show_error_expiration_enforced" , nil ) stringByReplacingOccurrencesOfString: @" $nDays" withString: nDays];
280
280
}
281
281
break ;
@@ -549,11 +549,10 @@ - (void) createShareLink {
549
549
550
550
if (self.isAllowEditingEnabled && self.fileShared .isDirectory ) {
551
551
552
+ updatePublicUpload = self.updatedPublicUpload ;
553
+
552
554
if (!self.isShowFileListingEnabled ) {
553
555
permissions = k_permissions_when_file_listing_option_enabled;
554
-
555
- } else {
556
- updatePublicUpload = self.updatedPublicUpload ;
557
556
}
558
557
}
559
558
@@ -640,6 +639,9 @@ - (void) allowEditingSwithValueChanged:(UISwitch*) sender{
640
639
} else {
641
640
self.isAllowEditingEnabled = YES ;
642
641
self.updatedPublicUpload = @" true" ;
642
+
643
+ self.isShowFileListingEnabled = YES ;
644
+ self.updatedShowFileListing = @" true" ;
643
645
}
644
646
645
647
[self updateInterfaceWithShareOptionsLinkStatus ]; // to update 'enabled' state of subordinate switch "Show file listing" and remain rest of updated fields
0 commit comments