Permalink
Browse files

Fixing bug where description was not being passed on creating a wall

  • Loading branch information...
1 parent 0096e0a commit ae0c875345bff49b05b7c0d0e7d9471a3cb28e50 @tomgco committed Jun 21, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −1 Classes/WallCreateModel.m
  2. +1 −0 Gawk.xcodeproj/WallCreateViewController.m
View
2 Classes/WallCreateModel.m
@@ -60,7 +60,7 @@ -(void) createWallStarted {
-(void) createWall {
NSDictionary *member = [[NSDictionary alloc] initWithDictionary:[self getMember]];
- NSString *createWallJSON = [NSString stringWithFormat:@"{\"memberSecureId\": \"%@\", \"name\" : \"%@\", \"url\" : \"%@\", \"description\" : \"iPhone Test\", \"publicView\" : \"%@\", \"publicGawk\": \"%@\" }", [member objectForKey:@"secureId"], name, url, publicView, publicGawk];
+ NSString *createWallJSON = [NSString stringWithFormat:@"{\"memberSecureId\": \"%@\", \"name\" : \"%@\", \"url\" : \"%@\", \"description\" : \"%@\", \"publicView\" : \"%@\", \"publicGawk\": \"%@\" }", [member objectForKey:@"secureId"], name, url, description, publicView, publicGawk];
[ASIHTTPRequest setShouldUpdateNetworkActivityIndicator:YES];
httpRequest = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:GAWK_API_LOCAITON]];
View
1 Gawk.xcodeproj/WallCreateViewController.m
@@ -85,6 +85,7 @@ - (IBAction) saveAndCreateWall {
wallCreateModel.url = url.text;
wallCreateModel.publicView = [NSNumber numberWithBool:publicToView.on];
wallCreateModel.publicGawk = [NSNumber numberWithBool:friendsCanGawk.on];
+ wallCreateModel.description = description.text;
[wallCreateModel createWall];
}

0 comments on commit ae0c875

Please sign in to comment.