Skip to content

Commit 89f7729

Browse files
committed
bugfix
1 parent 1456b1c commit 89f7729

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
</dict>
3737
</array>
3838
<key>CFBundleVersion</key>
39-
<string>4.8.201711061200</string>
39+
<string>4.8.201711161400</string>
4040
<key>ITSAppUsesNonExemptEncryption</key>
4141
<false/>
4242
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/EditTaskViewController.m

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -195,13 +195,15 @@ - (void)queryToRefreshTaskDetail{
195195
}
196196

197197
- (void)queryToRefreshResourceReference{
198-
__weak typeof(self) weakSelf = self;
199-
[[Coding_NetAPIManager sharedManager] request_TaskResourceReference:_myTask andBlock:^(id data, NSError *error) {
200-
if (data) {
201-
_myTask.resourceReference = data;
202-
[weakSelf.myTableView reloadData];
203-
}
204-
}];
198+
if (_myCopyTask.handleType == TaskHandleTypeEdit) {
199+
__weak typeof(self) weakSelf = self;
200+
[[Coding_NetAPIManager sharedManager] request_TaskResourceReference:_myTask andBlock:^(id data, NSError *error) {
201+
if (data) {
202+
_myTask.resourceReference = data;
203+
[weakSelf.myTableView reloadData];
204+
}
205+
}];
206+
}
205207
}
206208
#pragma mark Mine M
207209
- (void)doneBtnClicked{

0 commit comments

Comments
 (0)