Преглед изворни кода

修复Order List编辑时,选中All Load后点击合并后Crash。

Pen Li пре 9 година
родитељ
комит
f40fc894b7

BIN
RedAnt ERP Mobile/RedAnt ERP Mobile.xcworkspace/xcuserdata/macmini1.xcuserdatad/UserInterfaceState.xcuserstate


+ 3 - 0
RedAnt ERP Mobile/common/Functions/order/OrderListViewController.m

@@ -1868,6 +1868,9 @@ commitEditingStyle:(UITableViewCellEditingStyle)editingStyle  forRowAtIndexPath:
     }
     for (NSIndexPath *indexPath in self.table_order.indexPathsForSelectedRows) {
        
+        if(indexPath.row==self.content_data.count)
+            continue;
+        
         NSString* so= [self.content_data[indexPath.row] valueForKey:@"so#"];
         NSString* orderid= [self.content_data[indexPath.row] valueForKey:@"order_id"];
         NSString *create_by = [self.content_data[indexPath.row] valueForKey:@"create_by"];

+ 1 - 1
RedAnt ERP Mobile/iSales-NPD/config.h

@@ -10,7 +10,7 @@
 #define RedAnt_ERP_Mobile_config_h
 #define BUILD_NPD
 
-#define test_server
+//#define test_server
 #define exception_switch 1
 
 //#define ab_lager @"Delivery price"